<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="./js/coder_app.js"></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="./rtwreport_utils.js"></script>
<script type="text/javascript" src="./rtwannotate.js"></script>
<link rel="stylesheet" type="text/css" href="./css/coder_app.css"/>
</head>
<body onload="srcFileOnload();">
<pre id="code">
<table class="code" id="codeTbl">
<tr name="1" id="1">
<td><a id="l1" class='ln'>1</a></td><td><span class="pp">#include "breathrate.h"</span></td></tr>
<tr name="2" id="2">
<td><a id="l2" class='ln'>2</a></td><td><span class="pp">#include "breathrate_private.h"</span></td></tr>
<tr name="3" id="3">
<td><a id="l3" class='ln'>3</a></td><td></td></tr>
<tr name="4" id="4">
<td><a id="l4" class='ln'>4</a></td><td><a id="4c1" class="tk">B_breathrate_T</a> <a id="4c16" class="tk">breathrate_B</a>;</td></tr>
<tr name="5" id="5">
<td><a id="l5" class='ln'>5</a></td><td><a id="5c1" class="tk">DW_breathrate_T</a> <a id="5c17" class="tk">breathrate_DW</a>;</td></tr>
<tr name="6" id="6">
<td><a id="l6" class='ln'>6</a></td><td><a id="6c1" class="tk">ExtU_breathrate_T</a> <a id="6c19" class="tk">breathrate_U</a>;</td></tr>
<tr name="7" id="7">
<td><a id="l7" class='ln'>7</a></td><td><a id="7c1" class="tk">ExtY_breathrate_T</a> <a id="7c19" class="tk">breathrate_Y</a>;</td></tr>
<tr name="8" id="8">
<td><a id="l8" class='ln'>8</a></td><td><a id="8c1" class="tk">RT_MODEL_breathrate_T</a> <a id="8c23" class="tk">breathrate_M_</a>;</td></tr>
<tr name="9" id="9">
<td><a id="l9" class='ln'>9</a></td><td><a id="9c1" class="tk">RT_MODEL_breathrate_T</a> <a id="9c23" class="tk">*</a><span class="kw">const</span> <a id="9c30" class="tk">breathrate_M</a> = <a id="9c45" class="tk">&amp;</a><a id="9c46" class="tk">breathrate_M_</a>;</td></tr>
<tr name="10" id="10">
<td><a id="l10" class='ln'>10</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="10c13" class="tk">breathrate_getAllPeaksCodegen</a>(<span class="kw">const</span> <a id="10c49" class="tk">real32_T</a> <a id="10c58" class="tk">y</a>[149], <a id="10c66" class="tk">int32_T</a></td></tr>
<tr name="11" id="11">
<td><a id="l11" class='ln'>11</a></td><td>    <a id="11c5" class="tk">iPk_data</a>[], <a id="11c17" class="tk">int32_T</a> <a id="11c25" class="tk">*</a><a id="11c26" class="tk">iPk_size</a>, <a id="11c36" class="tk">int32_T</a> <a id="11c44" class="tk">*</a><a id="11c45" class="tk">iInf_size</a>, <a id="11c56" class="tk">int32_T</a> <a id="11c64" class="tk">iInflect_data</a>[],</td></tr>
<tr name="12" id="12">
<td><a id="l12" class='ln'>12</a></td><td>    <a id="12c5" class="tk">int32_T</a> <a id="12c13" class="tk">*</a><a id="12c14" class="tk">iInflect_size</a>);</td></tr>
<tr name="13" id="13">
<td><a id="l13" class='ln'>13</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="13c13" class="tk">breathrate_removeSmallPeaks</a>(<span class="kw">const</span> <a id="13c47" class="tk">real32_T</a> <a id="13c56" class="tk">y</a>[149], <span class="kw">const</span> <a id="13c70" class="tk">int32_T</a></td></tr>
<tr name="14" id="14">
<td><a id="l14" class='ln'>14</a></td><td>    <a id="14c5" class="tk">iFinite_data</a>[], <span class="kw">const</span> <a id="14c27" class="tk">int32_T</a> <a id="14c35" class="tk">*</a><a id="14c36" class="tk">iFinite_size</a>, <a id="14c50" class="tk">int32_T</a> <a id="14c58" class="tk">iPk_data</a>[], <a id="14c70" class="tk">int32_T</a></td></tr>
<tr name="15" id="15">
<td><a id="l15" class='ln'>15</a></td><td>    <a id="15c5" class="tk">*</a><a id="15c6" class="tk">iPk_size</a>);</td></tr>
<tr name="16" id="16">
<td><a id="l16" class='ln'>16</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="16c13" class="tk">breathrate_do_vectors</a>(<span class="kw">const</span> <a id="16c41" class="tk">int32_T</a> <a id="16c49" class="tk">a_data</a>[], <span class="kw">const</span> <a id="16c65" class="tk">int32_T</a> <a id="16c73" class="tk">*</a><a id="16c74" class="tk">a_size</a>,</td></tr>
<tr name="17" id="17">
<td><a id="l17" class='ln'>17</a></td><td>    <a id="17c5" class="tk">int32_T</a> <a id="17c13" class="tk">c_data</a>[], <a id="17c23" class="tk">int32_T</a> <a id="17c31" class="tk">*</a><a id="17c32" class="tk">c_size</a>, <a id="17c40" class="tk">int32_T</a> <a id="17c48" class="tk">ia_data</a>[], <a id="17c59" class="tk">int32_T</a> <a id="17c67" class="tk">*</a><a id="17c68" class="tk">ia_size</a>,</td></tr>
<tr name="18" id="18">
<td><a id="l18" class='ln'>18</a></td><td>    <a id="18c5" class="tk">int32_T</a> <a id="18c13" class="tk">*</a><a id="18c14" class="tk">ib_size</a>);</td></tr>
<tr name="19" id="19">
<td><a id="l19" class='ln'>19</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="19c13" class="tk">breathrate_sortIdx</a>(<span class="kw">const</span> <a id="19c38" class="tk">real32_T</a> <a id="19c47" class="tk">x_data</a>[], <span class="kw">const</span> <a id="19c63" class="tk">int32_T</a> <a id="19c71" class="tk">*</a><a id="19c72" class="tk">x_size</a>,</td></tr>
<tr name="20" id="20">
<td><a id="l20" class='ln'>20</a></td><td>    <a id="20c5" class="tk">int32_T</a> <a id="20c13" class="tk">idx_data</a>[], <a id="20c25" class="tk">int32_T</a> <a id="20c33" class="tk">*</a><a id="20c34" class="tk">idx_size</a>);</td></tr>
<tr name="21" id="21">
<td><a id="l21" class='ln'>21</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="21c13" class="tk">breathrate_merge</a>(<a id="21c30" class="tk">int32_T</a> <a id="21c38" class="tk">idx_data</a>[], <a id="21c50" class="tk">int32_T</a> <a id="21c58" class="tk">x_data</a>[], <a id="21c68" class="tk">int32_T</a></td></tr>
<tr name="22" id="22">
<td><a id="l22" class='ln'>22</a></td><td>    <a id="22c5" class="tk">offset</a>, <a id="22c13" class="tk">int32_T</a> <a id="22c21" class="tk">np</a>, <a id="22c25" class="tk">int32_T</a> <a id="22c33" class="tk">nq</a>, <a id="22c37" class="tk">int32_T</a> <a id="22c45" class="tk">iwork_data</a>[], <a id="22c59" class="tk">int32_T</a> <a id="22c67" class="tk">xwork_data</a>[]);</td></tr>
<tr name="23" id="23">
<td><a id="l23" class='ln'>23</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="23c13" class="tk">breathrate_merge_block</a>(<a id="23c36" class="tk">int32_T</a> <a id="23c44" class="tk">idx_data</a>[], <a id="23c56" class="tk">int32_T</a> <a id="23c64" class="tk">x_data</a>[], <a id="23c74" class="tk">int32_T</a></td></tr>
<tr name="24" id="24">
<td><a id="l24" class='ln'>24</a></td><td>    <a id="24c5" class="tk">n</a>, <a id="24c8" class="tk">int32_T</a> <a id="24c16" class="tk">iwork_data</a>[], <a id="24c30" class="tk">int32_T</a> <a id="24c38" class="tk">xwork_data</a>[]);</td></tr>
<tr name="25" id="25">
<td><a id="l25" class='ln'>25</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="25c13" class="tk">breathrate_sortIdx_c</a>(<a id="25c34" class="tk">int32_T</a> <a id="25c42" class="tk">x_data</a>[], <a id="25c52" class="tk">int32_T</a> <a id="25c60" class="tk">*</a><a id="25c61" class="tk">x_size</a>, <a id="25c69" class="tk">int32_T</a></td></tr>
<tr name="26" id="26">
<td><a id="l26" class='ln'>26</a></td><td>    <a id="26c5" class="tk">idx_data</a>[], <a id="26c17" class="tk">int32_T</a> <a id="26c25" class="tk">*</a><a id="26c26" class="tk">idx_size</a>);</td></tr>
<tr name="27" id="27">
<td><a id="l27" class='ln'>27</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="27c13" class="tk">breathrate_sort</a>(<a id="27c29" class="tk">int32_T</a> <a id="27c37" class="tk">x_data</a>[], <a id="27c47" class="tk">int32_T</a> <a id="27c55" class="tk">*</a><a id="27c56" class="tk">x_size</a>);</td></tr>
<tr name="28" id="28">
<td><a id="l28" class='ln'>28</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="28c13" class="tk">findPeaksSeparatedByMoreThanMin</a>(<span class="kw">const</span> <a id="28c51" class="tk">real32_T</a> <a id="28c60" class="tk">y</a>[149], <span class="kw">const</span> <a id="28c74" class="tk">int32_T</a></td></tr>
<tr name="29" id="29">
<td><a id="l29" class='ln'>29</a></td><td>    <a id="29c5" class="tk">iPk_data</a>[], <span class="kw">const</span> <a id="29c23" class="tk">int32_T</a> <a id="29c31" class="tk">*</a><a id="29c32" class="tk">iPk_size</a>, <a id="29c42" class="tk">int32_T</a> <a id="29c50" class="tk">idx_data</a>[], <a id="29c62" class="tk">int32_T</a> <a id="29c70" class="tk">*</a><a id="29c71" class="tk">idx_size</a>);</td></tr>
<tr name="30" id="30">
<td><a id="l30" class='ln'>30</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="30c13" class="tk">breathrate_findpeaks</a>(<span class="kw">const</span> <a id="30c40" class="tk">real32_T</a> <a id="30c49" class="tk">Yin</a>[149], <a id="30c59" class="tk">real32_T</a> <a id="30c68" class="tk">Ypk_data</a>[],</td></tr>
<tr name="31" id="31">
<td><a id="l31" class='ln'>31</a></td><td>    <a id="31c5" class="tk">int32_T</a> <a id="31c13" class="tk">*</a><a id="31c14" class="tk">Ypk_size</a>, <a id="31c24" class="tk">real_T</a> <a id="31c31" class="tk">Xpk_data</a>[], <a id="31c43" class="tk">int32_T</a> <a id="31c51" class="tk">*</a><a id="31c52" class="tk">Xpk_size</a>);</td></tr>
<tr name="32" id="32">
<td><a id="l32" class='ln'>32</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="32c13" class="tk">breathrate_diff</a>(<span class="kw">const</span> <a id="32c35" class="tk">real_T</a> <a id="32c42" class="tk">x_data</a>[], <span class="kw">const</span> <a id="32c58" class="tk">int32_T</a> <a id="32c66" class="tk">*</a><a id="32c67" class="tk">x_size</a>, <a id="32c75" class="tk">real_T</a></td></tr>
<tr name="33" id="33">
<td><a id="l33" class='ln'>33</a></td><td>    <a id="33c5" class="tk">y_data</a>[], <a id="33c15" class="tk">int32_T</a> <a id="33c23" class="tk">*</a><a id="33c24" class="tk">y_size</a>);</td></tr>
<tr name="34" id="34">
<td><a id="l34" class='ln'>34</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="34c13" class="tk">breathrate_SystemCore_release</a>(<a id="34c43" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="34c75" class="tk">*</a><a id="34c76" class="tk">obj</a>);</td></tr>
<tr name="35" id="35">
<td><a id="l35" class='ln'>35</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="35c13" class="tk">brea_LPHPFilterBase_releaseImpl</a>(<a id="35c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="35c76" class="tk">*</a><a id="35c77" class="tk">obj</a>);</td></tr>
<tr name="36" id="36">
<td><a id="l36" class='ln'>36</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="36c13" class="tk">breat_SystemCore_releaseWrapper</a>(<a id="36c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="36c76" class="tk">*</a><a id="36c77" class="tk">obj</a>);</td></tr>
<tr name="37" id="37">
<td><a id="l37" class='ln'>37</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="37c13" class="tk">breathrate_SystemCore_release_l</a>(<a id="37c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="37c76" class="tk">*</a><a id="37c77" class="tk">obj</a>);</td></tr>
<tr name="38" id="38">
<td><a id="l38" class='ln'>38</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="38c13" class="tk">breathrate_SystemCore_delete_l</a>(<a id="38c44" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="38c75" class="tk">*</a><a id="38c76" class="tk">obj</a>);</td></tr>
<tr name="39" id="39">
<td><a id="l39" class='ln'>39</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="39c13" class="tk">matlabCodegenHandle_matlabCod_l</a>(<a id="39c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="39c76" class="tk">*</a><a id="39c77" class="tk">obj</a>);</td></tr>
<tr name="40" id="40">
<td><a id="l40" class='ln'>40</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="40c13" class="tk">breathrate_SystemCore_delete</a>(<a id="40c42" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="40c74" class="tk">*</a><a id="40c75" class="tk">obj</a>);</td></tr>
<tr name="41" id="41">
<td><a id="l41" class='ln'>41</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="41c13" class="tk">matlabCodegenHandle_matlabCodeg</a>(<a id="41c45" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="41c77" class="tk">*</a><a id="41c78" class="tk">obj</a>);</td></tr>
<tr name="42" id="42">
<td><a id="l42" class='ln'>42</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="42c13" class="tk">breathrate_getAllPeaksCodegen</a>(<span class="kw">const</span> <a id="42c49" class="tk">real32_T</a> <a id="42c58" class="tk">y</a>[149], <a id="42c66" class="tk">int32_T</a></td></tr>
<tr name="43" id="43">
<td><a id="l43" class='ln'>43</a></td><td>    <a id="43c5" class="tk">iPk_data</a>[], <a id="43c17" class="tk">int32_T</a> <a id="43c25" class="tk">*</a><a id="43c26" class="tk">iPk_size</a>, <a id="43c36" class="tk">int32_T</a> <a id="43c44" class="tk">*</a><a id="43c45" class="tk">iInf_size</a>, <a id="43c56" class="tk">int32_T</a> <a id="43c64" class="tk">iInflect_data</a>[],</td></tr>
<tr name="44" id="44">
<td><a id="l44" class='ln'>44</a></td><td>    <a id="44c5" class="tk">int32_T</a> <a id="44c13" class="tk">*</a><a id="44c14" class="tk">iInflect_size</a>)</td></tr>
<tr name="45" id="45">
<td><a id="l45" class='ln'>45</a></td><td><span class="br">{</span></td></tr>
<tr name="46" id="46">
<td><a id="l46" class='ln'>46</a></td><td>    <a id="46c5" class="tk">int32_T</a> <a id="46c13" class="tk">nPk</a>;</td></tr>
<tr name="47" id="47">
<td><a id="l47" class='ln'>47</a></td><td>    <a id="47c5" class="tk">int32_T</a> <a id="47c13" class="tk">nInflect</a>;</td></tr>
<tr name="48" id="48">
<td><a id="l48" class='ln'>48</a></td><td>    <a id="48c5" class="tk">char_T</a> <a id="48c12" class="tk">dir</a>;</td></tr>
<tr name="49" id="49">
<td><a id="l49" class='ln'>49</a></td><td>    <a id="49c5" class="tk">int32_T</a> <a id="49c13" class="tk">kfirst</a>;</td></tr>
<tr name="50" id="50">
<td><a id="l50" class='ln'>50</a></td><td>    <a id="50c5" class="tk">real32_T</a> <a id="50c14" class="tk">ykfirst</a>;</td></tr>
<tr name="51" id="51">
<td><a id="l51" class='ln'>51</a></td><td>    <a id="51c5" class="tk">char_T</a> <a id="51c12" class="tk">previousdir</a>;</td></tr>
<tr name="52" id="52">
<td><a id="l52" class='ln'>52</a></td><td>    <a id="52c5" class="tk">int32_T</a> <a id="52c13" class="tk">k</a>;</td></tr>
<tr name="53" id="53">
<td><a id="l53" class='ln'>53</a></td><td>    <a id="53c5" class="tk">real32_T</a> <a id="53c14" class="tk">tmp</a>;</td></tr>
<tr name="54" id="54">
<td><a id="l54" class='ln'>54</a></td><td>    <a id="54c5" class="tk">nPk</a> = 0;</td></tr>
<tr name="55" id="55">
<td><a id="l55" class='ln'>55</a></td><td>    <a id="55c5" class="tk">nInflect</a> = <a id="55c16" class="tk">-</a>1;</td></tr>
<tr name="56" id="56">
<td><a id="l56" class='ln'>56</a></td><td>    <a id="56c5" class="tk">dir</a> = 'n';</td></tr>
<tr name="57" id="57">
<td><a id="l57" class='ln'>57</a></td><td>    <a id="57c5" class="tk">kfirst</a> = 1;</td></tr>
<tr name="58" id="58">
<td><a id="l58" class='ln'>58</a></td><td>    <a id="58c5" class="tk">ykfirst</a> = <a id="58c15" class="tk">y</a>[0];</td></tr>
<tr name="59" id="59">
<td><a id="l59" class='ln'>59</a></td><td>    <span class="kw">for</span> (<a id="59c10" class="tk">k</a> = 0; <a id="59c17" class="tk">k</a> <a id="59c19" class="tk">&lt;</a> 148; <a id="59c26" class="tk">k</a><a id="59c27" class="tk">++</a>)</td></tr>
<tr name="60" id="60">
<td><a id="l60" class='ln'>60</a></td><td>    <span class="br">{</span></td></tr>
<tr name="61" id="61">
<td><a id="l61" class='ln'>61</a></td><td>        <a id="61c9" class="tk">tmp</a> = <a id="61c15" class="tk">y</a>[<a id="61c17" class="tk">k</a> <a id="61c19" class="tk">+</a> 1];</td></tr>
<tr name="62" id="62">
<td><a id="l62" class='ln'>62</a></td><td>        <span class="kw">if</span> (<a id="62c13" class="tk">tmp</a> <a id="62c17" class="tk">!=</a> <a id="62c20" class="tk">ykfirst</a>)</td></tr>
<tr name="63" id="63">
<td><a id="l63" class='ln'>63</a></td><td>        <span class="br">{</span></td></tr>
<tr name="64" id="64">
<td><a id="l64" class='ln'>64</a></td><td>            <a id="64c13" class="tk">previousdir</a> = <a id="64c27" class="tk">dir</a>;</td></tr>
<tr name="65" id="65">
<td><a id="l65" class='ln'>65</a></td><td>            <span class="kw">if</span> (<a id="65c17" class="tk">tmp</a> <a id="65c21" class="tk">&lt;</a> <a id="65c23" class="tk">ykfirst</a>)</td></tr>
<tr name="66" id="66">
<td><a id="l66" class='ln'>66</a></td><td>            <span class="br">{</span></td></tr>
<tr name="67" id="67">
<td><a id="l67" class='ln'>67</a></td><td>                <a id="67c17" class="tk">dir</a> = 'd';</td></tr>
<tr name="68" id="68">
<td><a id="l68" class='ln'>68</a></td><td>                <span class="kw">if</span> ('d' <a id="68c25" class="tk">!=</a> (<a id="68c29" class="tk">int8_T</a>)<a id="68c36" class="tk">previousdir</a>)</td></tr>
<tr name="69" id="69">
<td><a id="l69" class='ln'>69</a></td><td>                <span class="br">{</span></td></tr>
<tr name="70" id="70">
<td><a id="l70" class='ln'>70</a></td><td>                    <a id="70c21" class="tk">nInflect</a><a id="70c29" class="tk">++</a>;</td></tr>
<tr name="71" id="71">
<td><a id="l71" class='ln'>71</a></td><td>                    <a id="71c21" class="tk">iInflect_data</a>[<a id="71c35" class="tk">nInflect</a>] = <a id="71c47" class="tk">kfirst</a>;</td></tr>
<tr name="72" id="72">
<td><a id="l72" class='ln'>72</a></td><td>                    <span class="kw">if</span> ((<a id="72c26" class="tk">int8_T</a>)<a id="72c33" class="tk">previousdir</a> <a id="72c45" class="tk">==</a> 'i')</td></tr>
<tr name="73" id="73">
<td><a id="l73" class='ln'>73</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="74" id="74">
<td><a id="l74" class='ln'>74</a></td><td>                        <a id="74c25" class="tk">nPk</a><a id="74c28" class="tk">++</a>;</td></tr>
<tr name="75" id="75">
<td><a id="l75" class='ln'>75</a></td><td>                        <a id="75c25" class="tk">iPk_data</a>[<a id="75c34" class="tk">nPk</a> <a id="75c38" class="tk">-</a> 1] = <a id="75c45" class="tk">kfirst</a>;</td></tr>
<tr name="76" id="76">
<td><a id="l76" class='ln'>76</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="77" id="77">
<td><a id="l77" class='ln'>77</a></td><td>                <span class="br">}</span></td></tr>
<tr name="78" id="78">
<td><a id="l78" class='ln'>78</a></td><td>            <span class="br">}</span></td></tr>
<tr name="79" id="79">
<td><a id="l79" class='ln'>79</a></td><td>            <span class="kw">else</span></td></tr>
<tr name="80" id="80">
<td><a id="l80" class='ln'>80</a></td><td>            <span class="br">{</span></td></tr>
<tr name="81" id="81">
<td><a id="l81" class='ln'>81</a></td><td>                <a id="81c17" class="tk">dir</a> = 'i';</td></tr>
<tr name="82" id="82">
<td><a id="l82" class='ln'>82</a></td><td>                <span class="kw">if</span> ('i' <a id="82c25" class="tk">!=</a> (<a id="82c29" class="tk">int8_T</a>)<a id="82c36" class="tk">previousdir</a>)</td></tr>
<tr name="83" id="83">
<td><a id="l83" class='ln'>83</a></td><td>                <span class="br">{</span></td></tr>
<tr name="84" id="84">
<td><a id="l84" class='ln'>84</a></td><td>                    <a id="84c21" class="tk">nInflect</a><a id="84c29" class="tk">++</a>;</td></tr>
<tr name="85" id="85">
<td><a id="l85" class='ln'>85</a></td><td>                    <a id="85c21" class="tk">iInflect_data</a>[<a id="85c35" class="tk">nInflect</a>] = <a id="85c47" class="tk">kfirst</a>;</td></tr>
<tr name="86" id="86">
<td><a id="l86" class='ln'>86</a></td><td>                <span class="br">}</span></td></tr>
<tr name="87" id="87">
<td><a id="l87" class='ln'>87</a></td><td>            <span class="br">}</span></td></tr>
<tr name="88" id="88">
<td><a id="l88" class='ln'>88</a></td><td></td></tr>
<tr name="89" id="89">
<td><a id="l89" class='ln'>89</a></td><td>            <a id="89c13" class="tk">ykfirst</a> = <a id="89c23" class="tk">tmp</a>;</td></tr>
<tr name="90" id="90">
<td><a id="l90" class='ln'>90</a></td><td>            <a id="90c13" class="tk">kfirst</a> = <a id="90c22" class="tk">k</a> <a id="90c24" class="tk">+</a> 2;</td></tr>
<tr name="91" id="91">
<td><a id="l91" class='ln'>91</a></td><td>        <span class="br">}</span></td></tr>
<tr name="92" id="92">
<td><a id="l92" class='ln'>92</a></td><td>    <span class="br">}</span></td></tr>
<tr name="93" id="93">
<td><a id="l93" class='ln'>93</a></td><td></td></tr>
<tr name="94" id="94">
<td><a id="l94" class='ln'>94</a></td><td>    <span class="kw">if</span> ((<a id="94c10" class="tk">nInflect</a> <a id="94c19" class="tk">+</a> 1 <a id="94c23" class="tk">==</a> 0) <a id="94c29" class="tk">||</a> (<a id="94c33" class="tk">iInflect_data</a>[<a id="94c47" class="tk">nInflect</a>] <a id="94c57" class="tk">&lt;</a> 149))</td></tr>
<tr name="95" id="95">
<td><a id="l95" class='ln'>95</a></td><td>    <span class="br">{</span></td></tr>
<tr name="96" id="96">
<td><a id="l96" class='ln'>96</a></td><td>        <a id="96c9" class="tk">nInflect</a><a id="96c17" class="tk">++</a>;</td></tr>
<tr name="97" id="97">
<td><a id="l97" class='ln'>97</a></td><td>        <a id="97c9" class="tk">iInflect_data</a>[<a id="97c23" class="tk">nInflect</a>] = 149;</td></tr>
<tr name="98" id="98">
<td><a id="l98" class='ln'>98</a></td><td>    <span class="br">}</span></td></tr>
<tr name="99" id="99">
<td><a id="l99" class='ln'>99</a></td><td></td></tr>
<tr name="100" id="100">
<td><a id="l100" class='ln'>100</a></td><td>    <span class="kw">if</span> (1 <a id="100c11" class="tk">&gt;</a> <a id="100c13" class="tk">nPk</a>)</td></tr>
<tr name="101" id="101">
<td><a id="l101" class='ln'>101</a></td><td>    <span class="br">{</span></td></tr>
<tr name="102" id="102">
<td><a id="l102" class='ln'>102</a></td><td>        <a id="102c9" class="tk">nPk</a> = 0;</td></tr>
<tr name="103" id="103">
<td><a id="l103" class='ln'>103</a></td><td>    <span class="br">}</span></td></tr>
<tr name="104" id="104">
<td><a id="l104" class='ln'>104</a></td><td></td></tr>
<tr name="105" id="105">
<td><a id="l105" class='ln'>105</a></td><td>    <span class="kw">for</span> (<a id="105c10" class="tk">kfirst</a> = 0; <a id="105c22" class="tk">kfirst</a> <a id="105c29" class="tk">&lt;</a> <a id="105c31" class="tk">nPk</a>; <a id="105c36" class="tk">kfirst</a><a id="105c42" class="tk">++</a>)</td></tr>
<tr name="106" id="106">
<td><a id="l106" class='ln'>106</a></td><td>    <span class="br">{</span></td></tr>
<tr name="107" id="107">
<td><a id="l107" class='ln'>107</a></td><td>        <a id="107c9" class="tk">breathrate_B</a>.<a id="107c22" class="tk">iPk_data_c</a>[<a id="107c33" class="tk">kfirst</a>] = (<a id="107c44" class="tk">uint8_T</a>)<a id="107c52" class="tk">iPk_data</a>[<a id="107c61" class="tk">kfirst</a>];</td></tr>
<tr name="108" id="108">
<td><a id="l108" class='ln'>108</a></td><td>    <span class="br">}</span></td></tr>
<tr name="109" id="109">
<td><a id="l109" class='ln'>109</a></td><td></td></tr>
<tr name="110" id="110">
<td><a id="l110" class='ln'>110</a></td><td>    <a id="110c5" class="tk">*</a><a id="110c6" class="tk">iPk_size</a> = <a id="110c17" class="tk">nPk</a>;</td></tr>
<tr name="111" id="111">
<td><a id="l111" class='ln'>111</a></td><td>    <span class="kw">for</span> (<a id="111c10" class="tk">kfirst</a> = 0; <a id="111c22" class="tk">kfirst</a> <a id="111c29" class="tk">&lt;</a> <a id="111c31" class="tk">nPk</a>; <a id="111c36" class="tk">kfirst</a><a id="111c42" class="tk">++</a>)</td></tr>
<tr name="112" id="112">
<td><a id="l112" class='ln'>112</a></td><td>    <span class="br">{</span></td></tr>
<tr name="113" id="113">
<td><a id="l113" class='ln'>113</a></td><td>        <a id="113c9" class="tk">iPk_data</a>[<a id="113c18" class="tk">kfirst</a>] = (<a id="113c29" class="tk">int32_T</a>)<a id="113c37" class="tk">breathrate_B</a>.<a id="113c50" class="tk">iPk_data_c</a>[<a id="113c61" class="tk">kfirst</a>];</td></tr>
<tr name="114" id="114">
<td><a id="l114" class='ln'>114</a></td><td>    <span class="br">}</span></td></tr>
<tr name="115" id="115">
<td><a id="l115" class='ln'>115</a></td><td></td></tr>
<tr name="116" id="116">
<td><a id="l116" class='ln'>116</a></td><td>    <a id="116c5" class="tk">*</a><a id="116c6" class="tk">iInf_size</a> = 0;</td></tr>
<tr name="117" id="117">
<td><a id="l117" class='ln'>117</a></td><td>    <span class="kw">if</span> (1 <a id="117c11" class="tk">&gt;</a> <a id="117c13" class="tk">nInflect</a> <a id="117c22" class="tk">+</a> 1)</td></tr>
<tr name="118" id="118">
<td><a id="l118" class='ln'>118</a></td><td>    <span class="br">{</span></td></tr>
<tr name="119" id="119">
<td><a id="l119" class='ln'>119</a></td><td>        <a id="119c9" class="tk">nPk</a> = 0;</td></tr>
<tr name="120" id="120">
<td><a id="l120" class='ln'>120</a></td><td>    <span class="br">}</span></td></tr>
<tr name="121" id="121">
<td><a id="l121" class='ln'>121</a></td><td>    <span class="kw">else</span></td></tr>
<tr name="122" id="122">
<td><a id="l122" class='ln'>122</a></td><td>    <span class="br">{</span></td></tr>
<tr name="123" id="123">
<td><a id="l123" class='ln'>123</a></td><td>        <a id="123c9" class="tk">nPk</a> = <a id="123c15" class="tk">nInflect</a> <a id="123c24" class="tk">+</a> 1;</td></tr>
<tr name="124" id="124">
<td><a id="l124" class='ln'>124</a></td><td>    <span class="br">}</span></td></tr>
<tr name="125" id="125">
<td><a id="l125" class='ln'>125</a></td><td></td></tr>
<tr name="126" id="126">
<td><a id="l126" class='ln'>126</a></td><td>    <span class="kw">for</span> (<a id="126c10" class="tk">kfirst</a> = 0; <a id="126c22" class="tk">kfirst</a> <a id="126c29" class="tk">&lt;</a> <a id="126c31" class="tk">nPk</a>; <a id="126c36" class="tk">kfirst</a><a id="126c42" class="tk">++</a>)</td></tr>
<tr name="127" id="127">
<td><a id="l127" class='ln'>127</a></td><td>    <span class="br">{</span></td></tr>
<tr name="128" id="128">
<td><a id="l128" class='ln'>128</a></td><td>        <a id="128c9" class="tk">breathrate_B</a>.<a id="128c22" class="tk">iPk_data_c</a>[<a id="128c33" class="tk">kfirst</a>] = (<a id="128c44" class="tk">uint8_T</a>)<a id="128c52" class="tk">iInflect_data</a>[<a id="128c66" class="tk">kfirst</a>];</td></tr>
<tr name="129" id="129">
<td><a id="l129" class='ln'>129</a></td><td>    <span class="br">}</span></td></tr>
<tr name="130" id="130">
<td><a id="l130" class='ln'>130</a></td><td></td></tr>
<tr name="131" id="131">
<td><a id="l131" class='ln'>131</a></td><td>    <a id="131c5" class="tk">*</a><a id="131c6" class="tk">iInflect_size</a> = <a id="131c22" class="tk">nPk</a>;</td></tr>
<tr name="132" id="132">
<td><a id="l132" class='ln'>132</a></td><td>    <span class="kw">for</span> (<a id="132c10" class="tk">kfirst</a> = 0; <a id="132c22" class="tk">kfirst</a> <a id="132c29" class="tk">&lt;</a> <a id="132c31" class="tk">nPk</a>; <a id="132c36" class="tk">kfirst</a><a id="132c42" class="tk">++</a>)</td></tr>
<tr name="133" id="133">
<td><a id="l133" class='ln'>133</a></td><td>    <span class="br">{</span></td></tr>
<tr name="134" id="134">
<td><a id="l134" class='ln'>134</a></td><td>        <a id="134c9" class="tk">iInflect_data</a>[<a id="134c23" class="tk">kfirst</a>] = (<a id="134c34" class="tk">int32_T</a>)<a id="134c42" class="tk">breathrate_B</a>.<a id="134c55" class="tk">iPk_data_c</a>[<a id="134c66" class="tk">kfirst</a>];</td></tr>
<tr name="135" id="135">
<td><a id="l135" class='ln'>135</a></td><td>    <span class="br">}</span></td></tr>
<tr name="136" id="136">
<td><a id="l136" class='ln'>136</a></td><td><span class="br">}</span></td></tr>
<tr name="137" id="137">
<td><a id="l137" class='ln'>137</a></td><td></td></tr>
<tr name="138" id="138">
<td><a id="l138" class='ln'>138</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="138c13" class="tk">breathrate_removeSmallPeaks</a>(<span class="kw">const</span> <a id="138c47" class="tk">real32_T</a> <a id="138c56" class="tk">y</a>[149], <span class="kw">const</span> <a id="138c70" class="tk">int32_T</a></td></tr>
<tr name="139" id="139">
<td><a id="l139" class='ln'>139</a></td><td>    <a id="139c5" class="tk">iFinite_data</a>[], <span class="kw">const</span> <a id="139c27" class="tk">int32_T</a> <a id="139c35" class="tk">*</a><a id="139c36" class="tk">iFinite_size</a>, <a id="139c50" class="tk">int32_T</a> <a id="139c58" class="tk">iPk_data</a>[], <a id="139c70" class="tk">int32_T</a></td></tr>
<tr name="140" id="140">
<td><a id="l140" class='ln'>140</a></td><td>    <a id="140c5" class="tk">*</a><a id="140c6" class="tk">iPk_size</a>)</td></tr>
<tr name="141" id="141">
<td><a id="l141" class='ln'>141</a></td><td><span class="br">{</span></td></tr>
<tr name="142" id="142">
<td><a id="l142" class='ln'>142</a></td><td>    <a id="142c5" class="tk">int32_T</a> <a id="142c13" class="tk">nPk</a>;</td></tr>
<tr name="143" id="143">
<td><a id="l143" class='ln'>143</a></td><td>    <a id="143c5" class="tk">int32_T</a> <a id="143c13" class="tk">k</a>;</td></tr>
<tr name="144" id="144">
<td><a id="l144" class='ln'>144</a></td><td>    <a id="144c5" class="tk">real32_T</a> <a id="144c14" class="tk">u0</a>;</td></tr>
<tr name="145" id="145">
<td><a id="l145" class='ln'>145</a></td><td>    <a id="145c5" class="tk">real32_T</a> <a id="145c14" class="tk">tmp</a>;</td></tr>
<tr name="146" id="146">
<td><a id="l146" class='ln'>146</a></td><td>    <a id="146c5" class="tk">nPk</a> = 0;</td></tr>
<tr name="147" id="147">
<td><a id="l147" class='ln'>147</a></td><td>    <span class="kw">for</span> (<a id="147c10" class="tk">k</a> = 0; <a id="147c17" class="tk">k</a> <a id="147c19" class="tk">&lt;</a> <a id="147c21" class="tk">*</a><a id="147c22" class="tk">iFinite_size</a>; <a id="147c36" class="tk">k</a><a id="147c37" class="tk">++</a>)</td></tr>
<tr name="148" id="148">
<td><a id="l148" class='ln'>148</a></td><td>    <span class="br">{</span></td></tr>
<tr name="149" id="149">
<td><a id="l149" class='ln'>149</a></td><td>        <a id="149c9" class="tk">tmp</a> = <a id="149c15" class="tk">y</a>[<a id="149c17" class="tk">iFinite_data</a>[<a id="149c30" class="tk">k</a>] <a id="149c33" class="tk">-</a> 1];</td></tr>
<tr name="150" id="150">
<td><a id="l150" class='ln'>150</a></td><td>        <span class="kw">if</span> (<a id="150c13" class="tk">tmp</a> <a id="150c17" class="tk">&gt;</a> 5.0F)</td></tr>
<tr name="151" id="151">
<td><a id="l151" class='ln'>151</a></td><td>        <span class="br">{</span></td></tr>
<tr name="152" id="152">
<td><a id="l152" class='ln'>152</a></td><td>            <a id="152c13" class="tk">u0</a> = <a id="152c18" class="tk">y</a>[<a id="152c20" class="tk">iFinite_data</a>[<a id="152c33" class="tk">k</a>] <a id="152c36" class="tk">-</a> 2];</td></tr>
<tr name="153" id="153">
<td><a id="l153" class='ln'>153</a></td><td>            <span class="kw">if</span> (<a id="153c17" class="tk">u0</a> <a id="153c20" class="tk">&lt;=</a> <a id="153c23" class="tk">y</a>[<a id="153c25" class="tk">iFinite_data</a>[<a id="153c38" class="tk">k</a>]])</td></tr>
<tr name="154" id="154">
<td><a id="l154" class='ln'>154</a></td><td>            <span class="br">{</span></td></tr>
<tr name="155" id="155">
<td><a id="l155" class='ln'>155</a></td><td>                <a id="155c17" class="tk">u0</a> = <a id="155c22" class="tk">y</a>[<a id="155c24" class="tk">iFinite_data</a>[<a id="155c37" class="tk">k</a>]];</td></tr>
<tr name="156" id="156">
<td><a id="l156" class='ln'>156</a></td><td>            <span class="br">}</span></td></tr>
<tr name="157" id="157">
<td><a id="l157" class='ln'>157</a></td><td></td></tr>
<tr name="158" id="158">
<td><a id="l158" class='ln'>158</a></td><td>            <span class="kw">if</span> (<a id="158c17" class="tk">tmp</a> <a id="158c21" class="tk">-</a> <a id="158c23" class="tk">u0</a> <a id="158c26" class="tk">&gt;=</a> 0.0F)</td></tr>
<tr name="159" id="159">
<td><a id="l159" class='ln'>159</a></td><td>            <span class="br">{</span></td></tr>
<tr name="160" id="160">
<td><a id="l160" class='ln'>160</a></td><td>                <a id="160c17" class="tk">nPk</a><a id="160c20" class="tk">++</a>;</td></tr>
<tr name="161" id="161">
<td><a id="l161" class='ln'>161</a></td><td>                <a id="161c17" class="tk">iPk_data</a>[<a id="161c26" class="tk">nPk</a> <a id="161c30" class="tk">-</a> 1] = <a id="161c37" class="tk">iFinite_data</a>[<a id="161c50" class="tk">k</a>];</td></tr>
<tr name="162" id="162">
<td><a id="l162" class='ln'>162</a></td><td>            <span class="br">}</span></td></tr>
<tr name="163" id="163">
<td><a id="l163" class='ln'>163</a></td><td>        <span class="br">}</span></td></tr>
<tr name="164" id="164">
<td><a id="l164" class='ln'>164</a></td><td>    <span class="br">}</span></td></tr>
<tr name="165" id="165">
<td><a id="l165" class='ln'>165</a></td><td></td></tr>
<tr name="166" id="166">
<td><a id="l166" class='ln'>166</a></td><td>    <span class="kw">if</span> (1 <a id="166c11" class="tk">&gt;</a> <a id="166c13" class="tk">nPk</a>)</td></tr>
<tr name="167" id="167">
<td><a id="l167" class='ln'>167</a></td><td>    <span class="br">{</span></td></tr>
<tr name="168" id="168">
<td><a id="l168" class='ln'>168</a></td><td>        <a id="168c9" class="tk">*</a><a id="168c10" class="tk">iPk_size</a> = 0;</td></tr>
<tr name="169" id="169">
<td><a id="l169" class='ln'>169</a></td><td>    <span class="br">}</span></td></tr>
<tr name="170" id="170">
<td><a id="l170" class='ln'>170</a></td><td>    <span class="kw">else</span></td></tr>
<tr name="171" id="171">
<td><a id="l171" class='ln'>171</a></td><td>    <span class="br">{</span></td></tr>
<tr name="172" id="172">
<td><a id="l172" class='ln'>172</a></td><td>        <a id="172c9" class="tk">*</a><a id="172c10" class="tk">iPk_size</a> = <a id="172c21" class="tk">nPk</a>;</td></tr>
<tr name="173" id="173">
<td><a id="l173" class='ln'>173</a></td><td>    <span class="br">}</span></td></tr>
<tr name="174" id="174">
<td><a id="l174" class='ln'>174</a></td><td><span class="br">}</span></td></tr>
<tr name="175" id="175">
<td><a id="l175" class='ln'>175</a></td><td></td></tr>
<tr name="176" id="176">
<td><a id="l176" class='ln'>176</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="176c13" class="tk">breathrate_do_vectors</a>(<span class="kw">const</span> <a id="176c41" class="tk">int32_T</a> <a id="176c49" class="tk">a_data</a>[], <span class="kw">const</span> <a id="176c65" class="tk">int32_T</a> <a id="176c73" class="tk">*</a><a id="176c74" class="tk">a_size</a>,</td></tr>
<tr name="177" id="177">
<td><a id="l177" class='ln'>177</a></td><td>    <a id="177c5" class="tk">int32_T</a> <a id="177c13" class="tk">c_data</a>[], <a id="177c23" class="tk">int32_T</a> <a id="177c31" class="tk">*</a><a id="177c32" class="tk">c_size</a>, <a id="177c40" class="tk">int32_T</a> <a id="177c48" class="tk">ia_data</a>[], <a id="177c59" class="tk">int32_T</a> <a id="177c67" class="tk">*</a><a id="177c68" class="tk">ia_size</a>,</td></tr>
<tr name="178" id="178">
<td><a id="l178" class='ln'>178</a></td><td>    <a id="178c5" class="tk">int32_T</a> <a id="178c13" class="tk">*</a><a id="178c14" class="tk">ib_size</a>)</td></tr>
<tr name="179" id="179">
<td><a id="l179" class='ln'>179</a></td><td><span class="br">{</span></td></tr>
<tr name="180" id="180">
<td><a id="l180" class='ln'>180</a></td><td>    <a id="180c5" class="tk">int32_T</a> <a id="180c13" class="tk">nc</a>;</td></tr>
<tr name="181" id="181">
<td><a id="l181" class='ln'>181</a></td><td>    <a id="181c5" class="tk">int32_T</a> <a id="181c13" class="tk">nia</a>;</td></tr>
<tr name="182" id="182">
<td><a id="l182" class='ln'>182</a></td><td>    <a id="182c5" class="tk">int32_T</a> <a id="182c13" class="tk">ialast</a>;</td></tr>
<tr name="183" id="183">
<td><a id="l183" class='ln'>183</a></td><td>    <a id="183c5" class="tk">int32_T</a> <a id="183c13" class="tk">b_ialast</a>;</td></tr>
<tr name="184" id="184">
<td><a id="l184" class='ln'>184</a></td><td>    <a id="184c5" class="tk">*</a><a id="184c6" class="tk">c_size</a> = (<a id="184c16" class="tk">int32_T</a>)(<a id="184c25" class="tk">uint8_T</a>)<a id="184c33" class="tk">*</a><a id="184c34" class="tk">a_size</a>;</td></tr>
<tr name="185" id="185">
<td><a id="l185" class='ln'>185</a></td><td>    <a id="185c5" class="tk">*</a><a id="185c6" class="tk">ia_size</a> = <a id="185c16" class="tk">*</a><a id="185c17" class="tk">a_size</a>;</td></tr>
<tr name="186" id="186">
<td><a id="l186" class='ln'>186</a></td><td>    <a id="186c5" class="tk">*</a><a id="186c6" class="tk">ib_size</a> = 0;</td></tr>
<tr name="187" id="187">
<td><a id="l187" class='ln'>187</a></td><td>    <a id="187c5" class="tk">nc</a> = 0;</td></tr>
<tr name="188" id="188">
<td><a id="l188" class='ln'>188</a></td><td>    <a id="188c5" class="tk">nia</a> = 0;</td></tr>
<tr name="189" id="189">
<td><a id="l189" class='ln'>189</a></td><td>    <span class="kw">for</span> (<a id="189c10" class="tk">ialast</a> = 1; <a id="189c22" class="tk">ialast</a> <a id="189c29" class="tk">&lt;=</a> <a id="189c32" class="tk">*</a><a id="189c33" class="tk">a_size</a>; <a id="189c41" class="tk">ialast</a> = <a id="189c50" class="tk">b_ialast</a> <a id="189c59" class="tk">+</a> 1)</td></tr>
<tr name="190" id="190">
<td><a id="l190" class='ln'>190</a></td><td>    <span class="br">{</span></td></tr>
<tr name="191" id="191">
<td><a id="l191" class='ln'>191</a></td><td>        <a id="191c9" class="tk">b_ialast</a> = <a id="191c20" class="tk">ialast</a>;</td></tr>
<tr name="192" id="192">
<td><a id="l192" class='ln'>192</a></td><td>        <span class="kw">while</span> ((<a id="192c17" class="tk">b_ialast</a> <a id="192c26" class="tk">&lt;</a> <a id="192c28" class="tk">*</a><a id="192c29" class="tk">a_size</a>) <a id="192c37" class="tk">&amp;&amp;</a> (<a id="192c41" class="tk">a_data</a>[<a id="192c48" class="tk">ialast</a> <a id="192c55" class="tk">-</a> 1] <a id="192c60" class="tk">==</a> <a id="192c63" class="tk">a_data</a>[<a id="192c70" class="tk">b_ialast</a>]))</td></tr>
<tr name="193" id="193">
<td><a id="l193" class='ln'>193</a></td><td>        <span class="br">{</span></td></tr>
<tr name="194" id="194">
<td><a id="l194" class='ln'>194</a></td><td>            <a id="194c13" class="tk">b_ialast</a><a id="194c21" class="tk">++</a>;</td></tr>
<tr name="195" id="195">
<td><a id="l195" class='ln'>195</a></td><td>        <span class="br">}</span></td></tr>
<tr name="196" id="196">
<td><a id="l196" class='ln'>196</a></td><td></td></tr>
<tr name="197" id="197">
<td><a id="l197" class='ln'>197</a></td><td>        <a id="197c9" class="tk">nc</a><a id="197c11" class="tk">++</a>;</td></tr>
<tr name="198" id="198">
<td><a id="l198" class='ln'>198</a></td><td>        <a id="198c9" class="tk">nia</a><a id="198c12" class="tk">++</a>;</td></tr>
<tr name="199" id="199">
<td><a id="l199" class='ln'>199</a></td><td>        <a id="199c9" class="tk">c_data</a>[<a id="199c16" class="tk">nc</a> <a id="199c19" class="tk">-</a> 1] = <a id="199c26" class="tk">a_data</a>[<a id="199c33" class="tk">ialast</a> <a id="199c40" class="tk">-</a> 1];</td></tr>
<tr name="200" id="200">
<td><a id="l200" class='ln'>200</a></td><td>        <a id="200c9" class="tk">ia_data</a>[<a id="200c17" class="tk">nia</a> <a id="200c21" class="tk">-</a> 1] = <a id="200c28" class="tk">ialast</a>;</td></tr>
<tr name="201" id="201">
<td><a id="l201" class='ln'>201</a></td><td>    <span class="br">}</span></td></tr>
<tr name="202" id="202">
<td><a id="l202" class='ln'>202</a></td><td></td></tr>
<tr name="203" id="203">
<td><a id="l203" class='ln'>203</a></td><td>    <span class="kw">if</span> (<a id="203c9" class="tk">*</a><a id="203c10" class="tk">a_size</a> <a id="203c17" class="tk">&gt;</a> 0)</td></tr>
<tr name="204" id="204">
<td><a id="l204" class='ln'>204</a></td><td>    <span class="br">{</span></td></tr>
<tr name="205" id="205">
<td><a id="l205" class='ln'>205</a></td><td>        <span class="kw">if</span> (1 <a id="205c15" class="tk">&gt;</a> <a id="205c17" class="tk">nia</a>)</td></tr>
<tr name="206" id="206">
<td><a id="l206" class='ln'>206</a></td><td>        <span class="br">{</span></td></tr>
<tr name="207" id="207">
<td><a id="l207" class='ln'>207</a></td><td>            <a id="207c13" class="tk">*</a><a id="207c14" class="tk">ia_size</a> = 0;</td></tr>
<tr name="208" id="208">
<td><a id="l208" class='ln'>208</a></td><td>        <span class="br">}</span></td></tr>
<tr name="209" id="209">
<td><a id="l209" class='ln'>209</a></td><td>        <span class="kw">else</span></td></tr>
<tr name="210" id="210">
<td><a id="l210" class='ln'>210</a></td><td>        <span class="br">{</span></td></tr>
<tr name="211" id="211">
<td><a id="l211" class='ln'>211</a></td><td>            <a id="211c13" class="tk">*</a><a id="211c14" class="tk">ia_size</a> = <a id="211c24" class="tk">nia</a>;</td></tr>
<tr name="212" id="212">
<td><a id="l212" class='ln'>212</a></td><td>        <span class="br">}</span></td></tr>
<tr name="213" id="213">
<td><a id="l213" class='ln'>213</a></td><td></td></tr>
<tr name="214" id="214">
<td><a id="l214" class='ln'>214</a></td><td>        <span class="kw">if</span> (1 <a id="214c15" class="tk">&gt;</a> <a id="214c17" class="tk">nc</a>)</td></tr>
<tr name="215" id="215">
<td><a id="l215" class='ln'>215</a></td><td>        <span class="br">{</span></td></tr>
<tr name="216" id="216">
<td><a id="l216" class='ln'>216</a></td><td>            <a id="216c13" class="tk">*</a><a id="216c14" class="tk">c_size</a> = 0;</td></tr>
<tr name="217" id="217">
<td><a id="l217" class='ln'>217</a></td><td>        <span class="br">}</span></td></tr>
<tr name="218" id="218">
<td><a id="l218" class='ln'>218</a></td><td>        <span class="kw">else</span></td></tr>
<tr name="219" id="219">
<td><a id="l219" class='ln'>219</a></td><td>        <span class="br">{</span></td></tr>
<tr name="220" id="220">
<td><a id="l220" class='ln'>220</a></td><td>            <a id="220c13" class="tk">*</a><a id="220c14" class="tk">c_size</a> = <a id="220c23" class="tk">nc</a>;</td></tr>
<tr name="221" id="221">
<td><a id="l221" class='ln'>221</a></td><td>        <span class="br">}</span></td></tr>
<tr name="222" id="222">
<td><a id="l222" class='ln'>222</a></td><td>    <span class="br">}</span></td></tr>
<tr name="223" id="223">
<td><a id="l223" class='ln'>223</a></td><td><span class="br">}</span></td></tr>
<tr name="224" id="224">
<td><a id="l224" class='ln'>224</a></td><td></td></tr>
<tr name="225" id="225">
<td><a id="l225" class='ln'>225</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="225c13" class="tk">breathrate_sortIdx</a>(<span class="kw">const</span> <a id="225c38" class="tk">real32_T</a> <a id="225c47" class="tk">x_data</a>[], <span class="kw">const</span> <a id="225c63" class="tk">int32_T</a> <a id="225c71" class="tk">*</a><a id="225c72" class="tk">x_size</a>,</td></tr>
<tr name="226" id="226">
<td><a id="l226" class='ln'>226</a></td><td>    <a id="226c5" class="tk">int32_T</a> <a id="226c13" class="tk">idx_data</a>[], <a id="226c25" class="tk">int32_T</a> <a id="226c33" class="tk">*</a><a id="226c34" class="tk">idx_size</a>)</td></tr>
<tr name="227" id="227">
<td><a id="l227" class='ln'>227</a></td><td><span class="br">{</span></td></tr>
<tr name="228" id="228">
<td><a id="l228" class='ln'>228</a></td><td>    <a id="228c5" class="tk">int32_T</a> <a id="228c13" class="tk">n</a>;</td></tr>
<tr name="229" id="229">
<td><a id="l229" class='ln'>229</a></td><td>    <a id="229c5" class="tk">int32_T</a> <a id="229c13" class="tk">k</a>;</td></tr>
<tr name="230" id="230">
<td><a id="l230" class='ln'>230</a></td><td>    <a id="230c5" class="tk">int32_T</a> <a id="230c13" class="tk">i</a>;</td></tr>
<tr name="231" id="231">
<td><a id="l231" class='ln'>231</a></td><td>    <a id="231c5" class="tk">int32_T</a> <a id="231c13" class="tk">i2</a>;</td></tr>
<tr name="232" id="232">
<td><a id="l232" class='ln'>232</a></td><td>    <a id="232c5" class="tk">int32_T</a> <a id="232c13" class="tk">j</a>;</td></tr>
<tr name="233" id="233">
<td><a id="l233" class='ln'>233</a></td><td>    <a id="233c5" class="tk">int32_T</a> <a id="233c13" class="tk">pEnd</a>;</td></tr>
<tr name="234" id="234">
<td><a id="l234" class='ln'>234</a></td><td>    <a id="234c5" class="tk">int32_T</a> <a id="234c13" class="tk">p</a>;</td></tr>
<tr name="235" id="235">
<td><a id="l235" class='ln'>235</a></td><td>    <a id="235c5" class="tk">int32_T</a> <a id="235c13" class="tk">q</a>;</td></tr>
<tr name="236" id="236">
<td><a id="l236" class='ln'>236</a></td><td>    <a id="236c5" class="tk">int32_T</a> <a id="236c13" class="tk">qEnd</a>;</td></tr>
<tr name="237" id="237">
<td><a id="l237" class='ln'>237</a></td><td>    <a id="237c5" class="tk">int32_T</a> <a id="237c13" class="tk">kEnd</a>;</td></tr>
<tr name="238" id="238">
<td><a id="l238" class='ln'>238</a></td><td>    <a id="238c5" class="tk">uint8_T</a> <a id="238c13" class="tk">b_idx_0</a>;</td></tr>
<tr name="239" id="239">
<td><a id="l239" class='ln'>239</a></td><td>    <a id="239c5" class="tk">int32_T</a> <a id="239c13" class="tk">tmp</a>;</td></tr>
<tr name="240" id="240">
<td><a id="l240" class='ln'>240</a></td><td>    <a id="240c5" class="tk">int32_T</a> <a id="240c13" class="tk">tmp_0</a>;</td></tr>
<tr name="241" id="241">
<td><a id="l241" class='ln'>241</a></td><td>    <a id="241c5" class="tk">n</a> = <a id="241c9" class="tk">*</a><a id="241c10" class="tk">x_size</a> <a id="241c17" class="tk">+</a> 1;</td></tr>
<tr name="242" id="242">
<td><a id="l242" class='ln'>242</a></td><td>    <a id="242c5" class="tk">b_idx_0</a> = (<a id="242c16" class="tk">uint8_T</a>)<a id="242c24" class="tk">*</a><a id="242c25" class="tk">x_size</a>;</td></tr>
<tr name="243" id="243">
<td><a id="l243" class='ln'>243</a></td><td>    <a id="243c5" class="tk">*</a><a id="243c6" class="tk">idx_size</a> = (<a id="243c18" class="tk">int32_T</a>)<a id="243c26" class="tk">b_idx_0</a>;</td></tr>
<tr name="244" id="244">
<td><a id="l244" class='ln'>244</a></td><td>    <span class="kw">if</span> (0 <a id="244c11" class="tk">&lt;=</a> (<a id="244c15" class="tk">int32_T</a>)<a id="244c23" class="tk">b_idx_0</a> <a id="244c31" class="tk">-</a> 1)</td></tr>
<tr name="245" id="245">
<td><a id="l245" class='ln'>245</a></td><td>    <span class="br">{</span></td></tr>
<tr name="246" id="246">
<td><a id="l246" class='ln'>246</a></td><td>        <a id="246c9" class="tk">memset</a>(<a id="246c16" class="tk">&amp;</a><a id="246c17" class="tk">idx_data</a>[0], 0, (<a id="246c34" class="tk">uint32_T</a>)<a id="246c43" class="tk">b_idx_0</a> <a id="246c51" class="tk">*</a> <span class="kw">sizeof</span>(<a id="246c60" class="tk">int32_T</a>));</td></tr>
<tr name="247" id="247">
<td><a id="l247" class='ln'>247</a></td><td>    <span class="br">}</span></td></tr>
<tr name="248" id="248">
<td><a id="l248" class='ln'>248</a></td><td></td></tr>
<tr name="249" id="249">
<td><a id="l249" class='ln'>249</a></td><td>    <span class="kw">for</span> (<a id="249c10" class="tk">i</a> = 1; <a id="249c17" class="tk">i</a> <a id="249c19" class="tk">&lt;=</a> <a id="249c22" class="tk">n</a> <a id="249c24" class="tk">-</a> 2; <a id="249c29" class="tk">i</a> <a id="249c31" class="tk">+=</a> 2)</td></tr>
<tr name="250" id="250">
<td><a id="l250" class='ln'>250</a></td><td>    <span class="br">{</span></td></tr>
<tr name="251" id="251">
<td><a id="l251" class='ln'>251</a></td><td>        <span class="kw">if</span> (<a id="251c13" class="tk">x_data</a>[<a id="251c20" class="tk">i</a> <a id="251c22" class="tk">-</a> 1] <a id="251c27" class="tk">&gt;=</a> <a id="251c30" class="tk">x_data</a>[<a id="251c37" class="tk">i</a>])</td></tr>
<tr name="252" id="252">
<td><a id="l252" class='ln'>252</a></td><td>        <span class="br">{</span></td></tr>
<tr name="253" id="253">
<td><a id="l253" class='ln'>253</a></td><td>            <a id="253c13" class="tk">idx_data</a>[<a id="253c22" class="tk">i</a> <a id="253c24" class="tk">-</a> 1] = <a id="253c31" class="tk">i</a>;</td></tr>
<tr name="254" id="254">
<td><a id="l254" class='ln'>254</a></td><td>            <a id="254c13" class="tk">idx_data</a>[<a id="254c22" class="tk">i</a>] = <a id="254c27" class="tk">i</a> <a id="254c29" class="tk">+</a> 1;</td></tr>
<tr name="255" id="255">
<td><a id="l255" class='ln'>255</a></td><td>        <span class="br">}</span></td></tr>
<tr name="256" id="256">
<td><a id="l256" class='ln'>256</a></td><td>        <span class="kw">else</span></td></tr>
<tr name="257" id="257">
<td><a id="l257" class='ln'>257</a></td><td>        <span class="br">{</span></td></tr>
<tr name="258" id="258">
<td><a id="l258" class='ln'>258</a></td><td>            <a id="258c13" class="tk">idx_data</a>[<a id="258c22" class="tk">i</a> <a id="258c24" class="tk">-</a> 1] = <a id="258c31" class="tk">i</a> <a id="258c33" class="tk">+</a> 1;</td></tr>
<tr name="259" id="259">
<td><a id="l259" class='ln'>259</a></td><td>            <a id="259c13" class="tk">idx_data</a>[<a id="259c22" class="tk">i</a>] = <a id="259c27" class="tk">i</a>;</td></tr>
<tr name="260" id="260">
<td><a id="l260" class='ln'>260</a></td><td>        <span class="br">}</span></td></tr>
<tr name="261" id="261">
<td><a id="l261" class='ln'>261</a></td><td>    <span class="br">}</span></td></tr>
<tr name="262" id="262">
<td><a id="l262" class='ln'>262</a></td><td></td></tr>
<tr name="263" id="263">
<td><a id="l263" class='ln'>263</a></td><td>    <span class="kw">if</span> (((<a id="263c11" class="tk">uint32_T</a>)<a id="263c20" class="tk">*</a><a id="263c21" class="tk">x_size</a> <a id="263c28" class="tk">&amp;</a> 1U) <a id="263c34" class="tk">!=</a> 0U)</td></tr>
<tr name="264" id="264">
<td><a id="l264" class='ln'>264</a></td><td>    <span class="br">{</span></td></tr>
<tr name="265" id="265">
<td><a id="l265" class='ln'>265</a></td><td>        <a id="265c9" class="tk">idx_data</a>[<a id="265c18" class="tk">*</a><a id="265c19" class="tk">x_size</a> <a id="265c26" class="tk">-</a> 1] = <a id="265c33" class="tk">*</a><a id="265c34" class="tk">x_size</a>;</td></tr>
<tr name="266" id="266">
<td><a id="l266" class='ln'>266</a></td><td>    <span class="br">}</span></td></tr>
<tr name="267" id="267">
<td><a id="l267" class='ln'>267</a></td><td></td></tr>
<tr name="268" id="268">
<td><a id="l268" class='ln'>268</a></td><td>    <a id="268c5" class="tk">i</a> = 2;</td></tr>
<tr name="269" id="269">
<td><a id="l269" class='ln'>269</a></td><td>    <span class="kw">while</span> (<a id="269c12" class="tk">i</a> <a id="269c14" class="tk">&lt;</a> <a id="269c16" class="tk">n</a> <a id="269c18" class="tk">-</a> 1)</td></tr>
<tr name="270" id="270">
<td><a id="l270" class='ln'>270</a></td><td>    <span class="br">{</span></td></tr>
<tr name="271" id="271">
<td><a id="l271" class='ln'>271</a></td><td>        <a id="271c9" class="tk">i2</a> = <a id="271c14" class="tk">i</a> <a id="271c16" class="tk">&lt;&lt;</a> 1;</td></tr>
<tr name="272" id="272">
<td><a id="l272" class='ln'>272</a></td><td>        <a id="272c9" class="tk">j</a> = 1;</td></tr>
<tr name="273" id="273">
<td><a id="l273" class='ln'>273</a></td><td>        <a id="273c9" class="tk">pEnd</a> = 1 <a id="273c18" class="tk">+</a> <a id="273c20" class="tk">i</a>;</td></tr>
<tr name="274" id="274">
<td><a id="l274" class='ln'>274</a></td><td>        <span class="kw">while</span> (<a id="274c16" class="tk">pEnd</a> <a id="274c21" class="tk">&lt;</a> <a id="274c23" class="tk">n</a>)</td></tr>
<tr name="275" id="275">
<td><a id="l275" class='ln'>275</a></td><td>        <span class="br">{</span></td></tr>
<tr name="276" id="276">
<td><a id="l276" class='ln'>276</a></td><td>            <a id="276c13" class="tk">p</a> = <a id="276c17" class="tk">j</a>;</td></tr>
<tr name="277" id="277">
<td><a id="l277" class='ln'>277</a></td><td>            <a id="277c13" class="tk">q</a> = <a id="277c17" class="tk">pEnd</a>;</td></tr>
<tr name="278" id="278">
<td><a id="l278" class='ln'>278</a></td><td>            <a id="278c13" class="tk">qEnd</a> = <a id="278c20" class="tk">j</a> <a id="278c22" class="tk">+</a> <a id="278c24" class="tk">i2</a>;</td></tr>
<tr name="279" id="279">
<td><a id="l279" class='ln'>279</a></td><td>            <span class="kw">if</span> (<a id="279c17" class="tk">qEnd</a> <a id="279c22" class="tk">&gt;</a> <a id="279c24" class="tk">n</a>)</td></tr>
<tr name="280" id="280">
<td><a id="l280" class='ln'>280</a></td><td>            <span class="br">{</span></td></tr>
<tr name="281" id="281">
<td><a id="l281" class='ln'>281</a></td><td>                <a id="281c17" class="tk">qEnd</a> = <a id="281c24" class="tk">n</a>;</td></tr>
<tr name="282" id="282">
<td><a id="l282" class='ln'>282</a></td><td>            <span class="br">}</span></td></tr>
<tr name="283" id="283">
<td><a id="l283" class='ln'>283</a></td><td></td></tr>
<tr name="284" id="284">
<td><a id="l284" class='ln'>284</a></td><td>            <a id="284c13" class="tk">k</a> = 0;</td></tr>
<tr name="285" id="285">
<td><a id="l285" class='ln'>285</a></td><td>            <a id="285c13" class="tk">kEnd</a> = <a id="285c20" class="tk">qEnd</a> <a id="285c25" class="tk">-</a> <a id="285c27" class="tk">j</a>;</td></tr>
<tr name="286" id="286">
<td><a id="l286" class='ln'>286</a></td><td>            <span class="kw">while</span> (<a id="286c20" class="tk">k</a> <a id="286c22" class="tk">+</a> 1 <a id="286c26" class="tk">&lt;=</a> <a id="286c29" class="tk">kEnd</a>)</td></tr>
<tr name="287" id="287">
<td><a id="l287" class='ln'>287</a></td><td>            <span class="br">{</span></td></tr>
<tr name="288" id="288">
<td><a id="l288" class='ln'>288</a></td><td>                <a id="288c17" class="tk">tmp</a> = <a id="288c23" class="tk">idx_data</a>[<a id="288c32" class="tk">q</a> <a id="288c34" class="tk">-</a> 1];</td></tr>
<tr name="289" id="289">
<td><a id="l289" class='ln'>289</a></td><td>                <a id="289c17" class="tk">tmp_0</a> = <a id="289c25" class="tk">idx_data</a>[<a id="289c34" class="tk">p</a> <a id="289c36" class="tk">-</a> 1];</td></tr>
<tr name="290" id="290">
<td><a id="l290" class='ln'>290</a></td><td>                <span class="kw">if</span> (<a id="290c21" class="tk">x_data</a>[<a id="290c28" class="tk">tmp_0</a> <a id="290c34" class="tk">-</a> 1] <a id="290c39" class="tk">&gt;=</a> <a id="290c42" class="tk">x_data</a>[<a id="290c49" class="tk">tmp</a> <a id="290c53" class="tk">-</a> 1])</td></tr>
<tr name="291" id="291">
<td><a id="l291" class='ln'>291</a></td><td>                <span class="br">{</span></td></tr>
<tr name="292" id="292">
<td><a id="l292" class='ln'>292</a></td><td>                    <a id="292c21" class="tk">breathrate_B</a>.<a id="292c34" class="tk">iwork_data_k</a>[<a id="292c47" class="tk">k</a>] = <a id="292c52" class="tk">tmp_0</a>;</td></tr>
<tr name="293" id="293">
<td><a id="l293" class='ln'>293</a></td><td>                    <a id="293c21" class="tk">p</a><a id="293c22" class="tk">++</a>;</td></tr>
<tr name="294" id="294">
<td><a id="l294" class='ln'>294</a></td><td>                    <span class="kw">if</span> (<a id="294c25" class="tk">p</a> <a id="294c27" class="tk">==</a> <a id="294c30" class="tk">pEnd</a>)</td></tr>
<tr name="295" id="295">
<td><a id="l295" class='ln'>295</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="296" id="296">
<td><a id="l296" class='ln'>296</a></td><td>                        <span class="kw">while</span> (<a id="296c32" class="tk">q</a> <a id="296c34" class="tk">&lt;</a> <a id="296c36" class="tk">qEnd</a>)</td></tr>
<tr name="297" id="297">
<td><a id="l297" class='ln'>297</a></td><td>                        <span class="br">{</span></td></tr>
<tr name="298" id="298">
<td><a id="l298" class='ln'>298</a></td><td>                            <a id="298c29" class="tk">k</a><a id="298c30" class="tk">++</a>;</td></tr>
<tr name="299" id="299">
<td><a id="l299" class='ln'>299</a></td><td>                            <a id="299c29" class="tk">breathrate_B</a>.<a id="299c42" class="tk">iwork_data_k</a>[<a id="299c55" class="tk">k</a>] = <a id="299c60" class="tk">idx_data</a>[<a id="299c69" class="tk">q</a> <a id="299c71" class="tk">-</a> 1];</td></tr>
<tr name="300" id="300">
<td><a id="l300" class='ln'>300</a></td><td>                            <a id="300c29" class="tk">q</a><a id="300c30" class="tk">++</a>;</td></tr>
<tr name="301" id="301">
<td><a id="l301" class='ln'>301</a></td><td>                        <span class="br">}</span></td></tr>
<tr name="302" id="302">
<td><a id="l302" class='ln'>302</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="303" id="303">
<td><a id="l303" class='ln'>303</a></td><td>                <span class="br">}</span></td></tr>
<tr name="304" id="304">
<td><a id="l304" class='ln'>304</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="305" id="305">
<td><a id="l305" class='ln'>305</a></td><td>                <span class="br">{</span></td></tr>
<tr name="306" id="306">
<td><a id="l306" class='ln'>306</a></td><td>                    <a id="306c21" class="tk">breathrate_B</a>.<a id="306c34" class="tk">iwork_data_k</a>[<a id="306c47" class="tk">k</a>] = <a id="306c52" class="tk">tmp</a>;</td></tr>
<tr name="307" id="307">
<td><a id="l307" class='ln'>307</a></td><td>                    <a id="307c21" class="tk">q</a><a id="307c22" class="tk">++</a>;</td></tr>
<tr name="308" id="308">
<td><a id="l308" class='ln'>308</a></td><td>                    <span class="kw">if</span> (<a id="308c25" class="tk">q</a> <a id="308c27" class="tk">==</a> <a id="308c30" class="tk">qEnd</a>)</td></tr>
<tr name="309" id="309">
<td><a id="l309" class='ln'>309</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="310" id="310">
<td><a id="l310" class='ln'>310</a></td><td>                        <span class="kw">while</span> (<a id="310c32" class="tk">p</a> <a id="310c34" class="tk">&lt;</a> <a id="310c36" class="tk">pEnd</a>)</td></tr>
<tr name="311" id="311">
<td><a id="l311" class='ln'>311</a></td><td>                        <span class="br">{</span></td></tr>
<tr name="312" id="312">
<td><a id="l312" class='ln'>312</a></td><td>                            <a id="312c29" class="tk">k</a><a id="312c30" class="tk">++</a>;</td></tr>
<tr name="313" id="313">
<td><a id="l313" class='ln'>313</a></td><td>                            <a id="313c29" class="tk">breathrate_B</a>.<a id="313c42" class="tk">iwork_data_k</a>[<a id="313c55" class="tk">k</a>] = <a id="313c60" class="tk">idx_data</a>[<a id="313c69" class="tk">p</a> <a id="313c71" class="tk">-</a> 1];</td></tr>
<tr name="314" id="314">
<td><a id="l314" class='ln'>314</a></td><td>                            <a id="314c29" class="tk">p</a><a id="314c30" class="tk">++</a>;</td></tr>
<tr name="315" id="315">
<td><a id="l315" class='ln'>315</a></td><td>                        <span class="br">}</span></td></tr>
<tr name="316" id="316">
<td><a id="l316" class='ln'>316</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="317" id="317">
<td><a id="l317" class='ln'>317</a></td><td>                <span class="br">}</span></td></tr>
<tr name="318" id="318">
<td><a id="l318" class='ln'>318</a></td><td></td></tr>
<tr name="319" id="319">
<td><a id="l319" class='ln'>319</a></td><td>                <a id="319c17" class="tk">k</a><a id="319c18" class="tk">++</a>;</td></tr>
<tr name="320" id="320">
<td><a id="l320" class='ln'>320</a></td><td>            <span class="br">}</span></td></tr>
<tr name="321" id="321">
<td><a id="l321" class='ln'>321</a></td><td></td></tr>
<tr name="322" id="322">
<td><a id="l322" class='ln'>322</a></td><td>            <span class="kw">for</span> (<a id="322c18" class="tk">pEnd</a> = 0; <a id="322c28" class="tk">pEnd</a> <a id="322c33" class="tk">&lt;</a> <a id="322c35" class="tk">kEnd</a>; <a id="322c41" class="tk">pEnd</a><a id="322c45" class="tk">++</a>)</td></tr>
<tr name="323" id="323">
<td><a id="l323" class='ln'>323</a></td><td>            <span class="br">{</span></td></tr>
<tr name="324" id="324">
<td><a id="l324" class='ln'>324</a></td><td>                <a id="324c17" class="tk">idx_data</a>[(<a id="324c27" class="tk">j</a> <a id="324c29" class="tk">+</a> <a id="324c31" class="tk">pEnd</a>) <a id="324c37" class="tk">-</a> 1] = <a id="324c44" class="tk">breathrate_B</a>.<a id="324c57" class="tk">iwork_data_k</a>[<a id="324c70" class="tk">pEnd</a>];</td></tr>
<tr name="325" id="325">
<td><a id="l325" class='ln'>325</a></td><td>            <span class="br">}</span></td></tr>
<tr name="326" id="326">
<td><a id="l326" class='ln'>326</a></td><td></td></tr>
<tr name="327" id="327">
<td><a id="l327" class='ln'>327</a></td><td>            <a id="327c13" class="tk">j</a> = <a id="327c17" class="tk">qEnd</a>;</td></tr>
<tr name="328" id="328">
<td><a id="l328" class='ln'>328</a></td><td>            <a id="328c13" class="tk">pEnd</a> = <a id="328c20" class="tk">qEnd</a> <a id="328c25" class="tk">+</a> <a id="328c27" class="tk">i</a>;</td></tr>
<tr name="329" id="329">
<td><a id="l329" class='ln'>329</a></td><td>        <span class="br">}</span></td></tr>
<tr name="330" id="330">
<td><a id="l330" class='ln'>330</a></td><td></td></tr>
<tr name="331" id="331">
<td><a id="l331" class='ln'>331</a></td><td>        <a id="331c9" class="tk">i</a> = <a id="331c13" class="tk">i2</a>;</td></tr>
<tr name="332" id="332">
<td><a id="l332" class='ln'>332</a></td><td>    <span class="br">}</span></td></tr>
<tr name="333" id="333">
<td><a id="l333" class='ln'>333</a></td><td><span class="br">}</span></td></tr>
<tr name="334" id="334">
<td><a id="l334" class='ln'>334</a></td><td></td></tr>
<tr name="335" id="335">
<td><a id="l335" class='ln'>335</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="335c13" class="tk">breathrate_merge</a>(<a id="335c30" class="tk">int32_T</a> <a id="335c38" class="tk">idx_data</a>[], <a id="335c50" class="tk">int32_T</a> <a id="335c58" class="tk">x_data</a>[], <a id="335c68" class="tk">int32_T</a></td></tr>
<tr name="336" id="336">
<td><a id="l336" class='ln'>336</a></td><td>    <a id="336c5" class="tk">offset</a>, <a id="336c13" class="tk">int32_T</a> <a id="336c21" class="tk">np</a>, <a id="336c25" class="tk">int32_T</a> <a id="336c33" class="tk">nq</a>, <a id="336c37" class="tk">int32_T</a> <a id="336c45" class="tk">iwork_data</a>[], <a id="336c59" class="tk">int32_T</a> <a id="336c67" class="tk">xwork_data</a>[])</td></tr>
<tr name="337" id="337">
<td><a id="l337" class='ln'>337</a></td><td><span class="br">{</span></td></tr>
<tr name="338" id="338">
<td><a id="l338" class='ln'>338</a></td><td>    <a id="338c5" class="tk">int32_T</a> <a id="338c13" class="tk">n</a>;</td></tr>
<tr name="339" id="339">
<td><a id="l339" class='ln'>339</a></td><td>    <a id="339c5" class="tk">int32_T</a> <a id="339c13" class="tk">q</a>;</td></tr>
<tr name="340" id="340">
<td><a id="l340" class='ln'>340</a></td><td>    <a id="340c5" class="tk">int32_T</a> <a id="340c13" class="tk">iout</a>;</td></tr>
<tr name="341" id="341">
<td><a id="l341" class='ln'>341</a></td><td>    <a id="341c5" class="tk">int32_T</a> <a id="341c13" class="tk">n_tmp</a>;</td></tr>
<tr name="342" id="342">
<td><a id="l342" class='ln'>342</a></td><td>    <a id="342c5" class="tk">int32_T</a> <a id="342c13" class="tk">exitg1</a>;</td></tr>
<tr name="343" id="343">
<td><a id="l343" class='ln'>343</a></td><td>    <span class="kw">if</span> (<a id="343c9" class="tk">nq</a> <a id="343c12" class="tk">!=</a> 0)</td></tr>
<tr name="344" id="344">
<td><a id="l344" class='ln'>344</a></td><td>    <span class="br">{</span></td></tr>
<tr name="345" id="345">
<td><a id="l345" class='ln'>345</a></td><td>        <a id="345c9" class="tk">n_tmp</a> = <a id="345c17" class="tk">np</a> <a id="345c20" class="tk">+</a> <a id="345c22" class="tk">nq</a>;</td></tr>
<tr name="346" id="346">
<td><a id="l346" class='ln'>346</a></td><td>        <span class="kw">for</span> (<a id="346c14" class="tk">q</a> = 0; <a id="346c21" class="tk">q</a> <a id="346c23" class="tk">&lt;</a> <a id="346c25" class="tk">n_tmp</a>; <a id="346c32" class="tk">q</a><a id="346c33" class="tk">++</a>)</td></tr>
<tr name="347" id="347">
<td><a id="l347" class='ln'>347</a></td><td>        <span class="br">{</span></td></tr>
<tr name="348" id="348">
<td><a id="l348" class='ln'>348</a></td><td>            <a id="348c13" class="tk">iout</a> = <a id="348c20" class="tk">offset</a> <a id="348c27" class="tk">+</a> <a id="348c29" class="tk">q</a>;</td></tr>
<tr name="349" id="349">
<td><a id="l349" class='ln'>349</a></td><td>            <a id="349c13" class="tk">iwork_data</a>[<a id="349c24" class="tk">q</a>] = <a id="349c29" class="tk">idx_data</a>[<a id="349c38" class="tk">iout</a>];</td></tr>
<tr name="350" id="350">
<td><a id="l350" class='ln'>350</a></td><td>            <a id="350c13" class="tk">xwork_data</a>[<a id="350c24" class="tk">q</a>] = <a id="350c29" class="tk">x_data</a>[<a id="350c36" class="tk">iout</a>];</td></tr>
<tr name="351" id="351">
<td><a id="l351" class='ln'>351</a></td><td>        <span class="br">}</span></td></tr>
<tr name="352" id="352">
<td><a id="l352" class='ln'>352</a></td><td></td></tr>
<tr name="353" id="353">
<td><a id="l353" class='ln'>353</a></td><td>        <a id="353c9" class="tk">n</a> = 0;</td></tr>
<tr name="354" id="354">
<td><a id="l354" class='ln'>354</a></td><td>        <a id="354c9" class="tk">q</a> = <a id="354c13" class="tk">np</a>;</td></tr>
<tr name="355" id="355">
<td><a id="l355" class='ln'>355</a></td><td>        <a id="355c9" class="tk">iout</a> = <a id="355c16" class="tk">offset</a> <a id="355c23" class="tk">-</a> 1;</td></tr>
<tr name="356" id="356">
<td><a id="l356" class='ln'>356</a></td><td>        <span class="kw">do</span></td></tr>
<tr name="357" id="357">
<td><a id="l357" class='ln'>357</a></td><td>        <span class="br">{</span></td></tr>
<tr name="358" id="358">
<td><a id="l358" class='ln'>358</a></td><td>            <a id="358c13" class="tk">exitg1</a> = 0;</td></tr>
<tr name="359" id="359">
<td><a id="l359" class='ln'>359</a></td><td>            <a id="359c13" class="tk">iout</a><a id="359c17" class="tk">++</a>;</td></tr>
<tr name="360" id="360">
<td><a id="l360" class='ln'>360</a></td><td>            <span class="kw">if</span> (<a id="360c17" class="tk">xwork_data</a>[<a id="360c28" class="tk">n</a>] <a id="360c31" class="tk">&lt;=</a> <a id="360c34" class="tk">xwork_data</a>[<a id="360c45" class="tk">q</a>])</td></tr>
<tr name="361" id="361">
<td><a id="l361" class='ln'>361</a></td><td>            <span class="br">{</span></td></tr>
<tr name="362" id="362">
<td><a id="l362" class='ln'>362</a></td><td>                <a id="362c17" class="tk">idx_data</a>[<a id="362c26" class="tk">iout</a>] = <a id="362c34" class="tk">iwork_data</a>[<a id="362c45" class="tk">n</a>];</td></tr>
<tr name="363" id="363">
<td><a id="l363" class='ln'>363</a></td><td>                <a id="363c17" class="tk">x_data</a>[<a id="363c24" class="tk">iout</a>] = <a id="363c32" class="tk">xwork_data</a>[<a id="363c43" class="tk">n</a>];</td></tr>
<tr name="364" id="364">
<td><a id="l364" class='ln'>364</a></td><td>                <span class="kw">if</span> (<a id="364c21" class="tk">n</a> <a id="364c23" class="tk">+</a> 1 <a id="364c27" class="tk">&lt;</a> <a id="364c29" class="tk">np</a>)</td></tr>
<tr name="365" id="365">
<td><a id="l365" class='ln'>365</a></td><td>                <span class="br">{</span></td></tr>
<tr name="366" id="366">
<td><a id="l366" class='ln'>366</a></td><td>                    <a id="366c21" class="tk">n</a><a id="366c22" class="tk">++</a>;</td></tr>
<tr name="367" id="367">
<td><a id="l367" class='ln'>367</a></td><td>                <span class="br">}</span></td></tr>
<tr name="368" id="368">
<td><a id="l368" class='ln'>368</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="369" id="369">
<td><a id="l369" class='ln'>369</a></td><td>                <span class="br">{</span></td></tr>
<tr name="370" id="370">
<td><a id="l370" class='ln'>370</a></td><td>                    <a id="370c21" class="tk">exitg1</a> = 1;</td></tr>
<tr name="371" id="371">
<td><a id="l371" class='ln'>371</a></td><td>                <span class="br">}</span></td></tr>
<tr name="372" id="372">
<td><a id="l372" class='ln'>372</a></td><td>            <span class="br">}</span></td></tr>
<tr name="373" id="373">
<td><a id="l373" class='ln'>373</a></td><td>            <span class="kw">else</span></td></tr>
<tr name="374" id="374">
<td><a id="l374" class='ln'>374</a></td><td>            <span class="br">{</span></td></tr>
<tr name="375" id="375">
<td><a id="l375" class='ln'>375</a></td><td>                <a id="375c17" class="tk">idx_data</a>[<a id="375c26" class="tk">iout</a>] = <a id="375c34" class="tk">iwork_data</a>[<a id="375c45" class="tk">q</a>];</td></tr>
<tr name="376" id="376">
<td><a id="l376" class='ln'>376</a></td><td>                <a id="376c17" class="tk">x_data</a>[<a id="376c24" class="tk">iout</a>] = <a id="376c32" class="tk">xwork_data</a>[<a id="376c43" class="tk">q</a>];</td></tr>
<tr name="377" id="377">
<td><a id="l377" class='ln'>377</a></td><td>                <span class="kw">if</span> (<a id="377c21" class="tk">q</a> <a id="377c23" class="tk">+</a> 1 <a id="377c27" class="tk">&lt;</a> <a id="377c29" class="tk">n_tmp</a>)</td></tr>
<tr name="378" id="378">
<td><a id="l378" class='ln'>378</a></td><td>                <span class="br">{</span></td></tr>
<tr name="379" id="379">
<td><a id="l379" class='ln'>379</a></td><td>                    <a id="379c21" class="tk">q</a><a id="379c22" class="tk">++</a>;</td></tr>
<tr name="380" id="380">
<td><a id="l380" class='ln'>380</a></td><td>                <span class="br">}</span></td></tr>
<tr name="381" id="381">
<td><a id="l381" class='ln'>381</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="382" id="382">
<td><a id="l382" class='ln'>382</a></td><td>                <span class="br">{</span></td></tr>
<tr name="383" id="383">
<td><a id="l383" class='ln'>383</a></td><td>                    <a id="383c21" class="tk">q</a> = <a id="383c25" class="tk">iout</a> <a id="383c30" class="tk">-</a> <a id="383c32" class="tk">n</a>;</td></tr>
<tr name="384" id="384">
<td><a id="l384" class='ln'>384</a></td><td>                    <span class="kw">while</span> (<a id="384c28" class="tk">n</a> <a id="384c30" class="tk">+</a> 1 <a id="384c34" class="tk">&lt;=</a> <a id="384c37" class="tk">np</a>)</td></tr>
<tr name="385" id="385">
<td><a id="l385" class='ln'>385</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="386" id="386">
<td><a id="l386" class='ln'>386</a></td><td>                        <a id="386c25" class="tk">iout</a> = (<a id="386c33" class="tk">q</a> <a id="386c35" class="tk">+</a> <a id="386c37" class="tk">n</a>) <a id="386c40" class="tk">+</a> 1;</td></tr>
<tr name="387" id="387">
<td><a id="l387" class='ln'>387</a></td><td>                        <a id="387c25" class="tk">idx_data</a>[<a id="387c34" class="tk">iout</a>] = <a id="387c42" class="tk">iwork_data</a>[<a id="387c53" class="tk">n</a>];</td></tr>
<tr name="388" id="388">
<td><a id="l388" class='ln'>388</a></td><td>                        <a id="388c25" class="tk">x_data</a>[<a id="388c32" class="tk">iout</a>] = <a id="388c40" class="tk">xwork_data</a>[<a id="388c51" class="tk">n</a>];</td></tr>
<tr name="389" id="389">
<td><a id="l389" class='ln'>389</a></td><td>                        <a id="389c25" class="tk">n</a><a id="389c26" class="tk">++</a>;</td></tr>
<tr name="390" id="390">
<td><a id="l390" class='ln'>390</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="391" id="391">
<td><a id="l391" class='ln'>391</a></td><td></td></tr>
<tr name="392" id="392">
<td><a id="l392" class='ln'>392</a></td><td>                    <a id="392c21" class="tk">exitg1</a> = 1;</td></tr>
<tr name="393" id="393">
<td><a id="l393" class='ln'>393</a></td><td>                <span class="br">}</span></td></tr>
<tr name="394" id="394">
<td><a id="l394" class='ln'>394</a></td><td>            <span class="br">}</span></td></tr>
<tr name="395" id="395">
<td><a id="l395" class='ln'>395</a></td><td>        <span class="br">}</span></td></tr>
<tr name="396" id="396">
<td><a id="l396" class='ln'>396</a></td><td>        <span class="kw">while</span> (<a id="396c16" class="tk">exitg1</a> <a id="396c23" class="tk">==</a> 0);</td></tr>
<tr name="397" id="397">
<td><a id="l397" class='ln'>397</a></td><td>    <span class="br">}</span></td></tr>
<tr name="398" id="398">
<td><a id="l398" class='ln'>398</a></td><td><span class="br">}</span></td></tr>
<tr name="399" id="399">
<td><a id="l399" class='ln'>399</a></td><td></td></tr>
<tr name="400" id="400">
<td><a id="l400" class='ln'>400</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="400c13" class="tk">breathrate_merge_block</a>(<a id="400c36" class="tk">int32_T</a> <a id="400c44" class="tk">idx_data</a>[], <a id="400c56" class="tk">int32_T</a> <a id="400c64" class="tk">x_data</a>[], <a id="400c74" class="tk">int32_T</a></td></tr>
<tr name="401" id="401">
<td><a id="l401" class='ln'>401</a></td><td>    <a id="401c5" class="tk">n</a>, <a id="401c8" class="tk">int32_T</a> <a id="401c16" class="tk">iwork_data</a>[], <a id="401c30" class="tk">int32_T</a> <a id="401c38" class="tk">xwork_data</a>[])</td></tr>
<tr name="402" id="402">
<td><a id="l402" class='ln'>402</a></td><td><span class="br">{</span></td></tr>
<tr name="403" id="403">
<td><a id="l403" class='ln'>403</a></td><td>    <a id="403c5" class="tk">int32_T</a> <a id="403c13" class="tk">bLen</a>;</td></tr>
<tr name="404" id="404">
<td><a id="l404" class='ln'>404</a></td><td>    <a id="404c5" class="tk">int32_T</a> <a id="404c13" class="tk">tailOffset</a>;</td></tr>
<tr name="405" id="405">
<td><a id="l405" class='ln'>405</a></td><td>    <a id="405c5" class="tk">int32_T</a> <a id="405c13" class="tk">nTail</a>;</td></tr>
<tr name="406" id="406">
<td><a id="l406" class='ln'>406</a></td><td>    <a id="406c5" class="tk">int32_T</a> <a id="406c13" class="tk">nPairs</a>;</td></tr>
<tr name="407" id="407">
<td><a id="l407" class='ln'>407</a></td><td>    <a id="407c5" class="tk">nPairs</a> = <a id="407c14" class="tk">n</a> <a id="407c16" class="tk">&gt;&gt;</a> 2;</td></tr>
<tr name="408" id="408">
<td><a id="l408" class='ln'>408</a></td><td>    <a id="408c5" class="tk">bLen</a> = 4;</td></tr>
<tr name="409" id="409">
<td><a id="l409" class='ln'>409</a></td><td>    <span class="kw">while</span> (<a id="409c12" class="tk">nPairs</a> <a id="409c19" class="tk">&gt;</a> 1)</td></tr>
<tr name="410" id="410">
<td><a id="l410" class='ln'>410</a></td><td>    <span class="br">{</span></td></tr>
<tr name="411" id="411">
<td><a id="l411" class='ln'>411</a></td><td>        <span class="kw">if</span> (((<a id="411c15" class="tk">uint32_T</a>)<a id="411c24" class="tk">nPairs</a> <a id="411c31" class="tk">&amp;</a> 1U) <a id="411c37" class="tk">!=</a> 0U)</td></tr>
<tr name="412" id="412">
<td><a id="l412" class='ln'>412</a></td><td>        <span class="br">{</span></td></tr>
<tr name="413" id="413">
<td><a id="l413" class='ln'>413</a></td><td>            <a id="413c13" class="tk">nPairs</a><a id="413c19" class="tk">--</a>;</td></tr>
<tr name="414" id="414">
<td><a id="l414" class='ln'>414</a></td><td>            <a id="414c13" class="tk">tailOffset</a> = <a id="414c26" class="tk">bLen</a> <a id="414c31" class="tk">*</a> <a id="414c33" class="tk">nPairs</a>;</td></tr>
<tr name="415" id="415">
<td><a id="l415" class='ln'>415</a></td><td>            <a id="415c13" class="tk">nTail</a> = <a id="415c21" class="tk">n</a> <a id="415c23" class="tk">-</a> <a id="415c25" class="tk">tailOffset</a>;</td></tr>
<tr name="416" id="416">
<td><a id="l416" class='ln'>416</a></td><td>            <span class="kw">if</span> (<a id="416c17" class="tk">nTail</a> <a id="416c23" class="tk">&gt;</a> <a id="416c25" class="tk">bLen</a>)</td></tr>
<tr name="417" id="417">
<td><a id="l417" class='ln'>417</a></td><td>            <span class="br">{</span></td></tr>
<tr name="418" id="418">
<td><a id="l418" class='ln'>418</a></td><td>                <a id="418c17" class="tk">breathrate_merge</a>(<a id="418c34" class="tk">idx_data</a>, <a id="418c44" class="tk">x_data</a>, <a id="418c52" class="tk">tailOffset</a>, <a id="418c64" class="tk">bLen</a>, <a id="418c70" class="tk">nTail</a> <a id="418c76" class="tk">-</a></td></tr>
<tr name="419" id="419">
<td><a id="l419" class='ln'>419</a></td><td>                                 <a id="419c34" class="tk">bLen</a>, <a id="419c40" class="tk">iwork_data</a>, <a id="419c52" class="tk">xwork_data</a>);</td></tr>
<tr name="420" id="420">
<td><a id="l420" class='ln'>420</a></td><td>            <span class="br">}</span></td></tr>
<tr name="421" id="421">
<td><a id="l421" class='ln'>421</a></td><td>        <span class="br">}</span></td></tr>
<tr name="422" id="422">
<td><a id="l422" class='ln'>422</a></td><td></td></tr>
<tr name="423" id="423">
<td><a id="l423" class='ln'>423</a></td><td>        <a id="423c9" class="tk">tailOffset</a> = <a id="423c22" class="tk">bLen</a> <a id="423c27" class="tk">&lt;&lt;</a> 1;</td></tr>
<tr name="424" id="424">
<td><a id="l424" class='ln'>424</a></td><td>        <a id="424c9" class="tk">nPairs</a> <a id="424c16" class="tk">&gt;&gt;=</a> 1;</td></tr>
<tr name="425" id="425">
<td><a id="l425" class='ln'>425</a></td><td>        <span class="kw">for</span> (<a id="425c14" class="tk">nTail</a> = 0; <a id="425c25" class="tk">nTail</a> <a id="425c31" class="tk">&lt;</a> <a id="425c33" class="tk">nPairs</a>; <a id="425c41" class="tk">nTail</a><a id="425c46" class="tk">++</a>)</td></tr>
<tr name="426" id="426">
<td><a id="l426" class='ln'>426</a></td><td>        <span class="br">{</span></td></tr>
<tr name="427" id="427">
<td><a id="l427" class='ln'>427</a></td><td>            <a id="427c13" class="tk">breathrate_merge</a>(<a id="427c30" class="tk">idx_data</a>, <a id="427c40" class="tk">x_data</a>, <a id="427c48" class="tk">nTail</a> <a id="427c54" class="tk">*</a> <a id="427c56" class="tk">tailOffset</a>, <a id="427c68" class="tk">bLen</a>, <a id="427c74" class="tk">bLen</a>,</td></tr>
<tr name="428" id="428">
<td><a id="l428" class='ln'>428</a></td><td>                             <a id="428c30" class="tk">iwork_data</a>, <a id="428c42" class="tk">xwork_data</a>);</td></tr>
<tr name="429" id="429">
<td><a id="l429" class='ln'>429</a></td><td>        <span class="br">}</span></td></tr>
<tr name="430" id="430">
<td><a id="l430" class='ln'>430</a></td><td></td></tr>
<tr name="431" id="431">
<td><a id="l431" class='ln'>431</a></td><td>        <a id="431c9" class="tk">bLen</a> = <a id="431c16" class="tk">tailOffset</a>;</td></tr>
<tr name="432" id="432">
<td><a id="l432" class='ln'>432</a></td><td>    <span class="br">}</span></td></tr>
<tr name="433" id="433">
<td><a id="l433" class='ln'>433</a></td><td></td></tr>
<tr name="434" id="434">
<td><a id="l434" class='ln'>434</a></td><td>    <span class="kw">if</span> (<a id="434c9" class="tk">n</a> <a id="434c11" class="tk">&gt;</a> <a id="434c13" class="tk">bLen</a>)</td></tr>
<tr name="435" id="435">
<td><a id="l435" class='ln'>435</a></td><td>    <span class="br">{</span></td></tr>
<tr name="436" id="436">
<td><a id="l436" class='ln'>436</a></td><td>        <a id="436c9" class="tk">breathrate_merge</a>(<a id="436c26" class="tk">idx_data</a>, <a id="436c36" class="tk">x_data</a>, 0, <a id="436c47" class="tk">bLen</a>, <a id="436c53" class="tk">n</a> <a id="436c55" class="tk">-</a> <a id="436c57" class="tk">bLen</a>, <a id="436c63" class="tk">iwork_data</a>,</td></tr>
<tr name="437" id="437">
<td><a id="l437" class='ln'>437</a></td><td>                         <a id="437c26" class="tk">xwork_data</a>);</td></tr>
<tr name="438" id="438">
<td><a id="l438" class='ln'>438</a></td><td>    <span class="br">}</span></td></tr>
<tr name="439" id="439">
<td><a id="l439" class='ln'>439</a></td><td><span class="br">}</span></td></tr>
<tr name="440" id="440">
<td><a id="l440" class='ln'>440</a></td><td></td></tr>
<tr name="441" id="441">
<td><a id="l441" class='ln'>441</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="441c13" class="tk">breathrate_sortIdx_c</a>(<a id="441c34" class="tk">int32_T</a> <a id="441c42" class="tk">x_data</a>[], <a id="441c52" class="tk">int32_T</a> <a id="441c60" class="tk">*</a><a id="441c61" class="tk">x_size</a>, <a id="441c69" class="tk">int32_T</a></td></tr>
<tr name="442" id="442">
<td><a id="l442" class='ln'>442</a></td><td>    <a id="442c5" class="tk">idx_data</a>[], <a id="442c17" class="tk">int32_T</a> <a id="442c25" class="tk">*</a><a id="442c26" class="tk">idx_size</a>)</td></tr>
<tr name="443" id="443">
<td><a id="l443" class='ln'>443</a></td><td><span class="br">{</span></td></tr>
<tr name="444" id="444">
<td><a id="l444" class='ln'>444</a></td><td>    <a id="444c5" class="tk">int32_T</a> <a id="444c13" class="tk">i3</a>;</td></tr>
<tr name="445" id="445">
<td><a id="l445" class='ln'>445</a></td><td>    <a id="445c5" class="tk">int32_T</a> <a id="445c13" class="tk">i4</a>;</td></tr>
<tr name="446" id="446">
<td><a id="l446" class='ln'>446</a></td><td>    <a id="446c5" class="tk">int32_T</a> <a id="446c13" class="tk">c_x_size</a>;</td></tr>
<tr name="447" id="447">
<td><a id="l447" class='ln'>447</a></td><td>    <a id="447c5" class="tk">uint8_T</a> <a id="447c13" class="tk">b_x_idx_0</a>;</td></tr>
<tr name="448" id="448">
<td><a id="l448" class='ln'>448</a></td><td>    <a id="448c5" class="tk">uint8_T</a> <a id="448c13" class="tk">b_idx_0</a>;</td></tr>
<tr name="449" id="449">
<td><a id="l449" class='ln'>449</a></td><td>    <a id="449c5" class="tk">int32_T</a> <a id="449c13" class="tk">tmp</a>;</td></tr>
<tr name="450" id="450">
<td><a id="l450" class='ln'>450</a></td><td>    <a id="450c5" class="tk">int32_T</a> <a id="450c13" class="tk">tmp_0</a>;</td></tr>
<tr name="451" id="451">
<td><a id="l451" class='ln'>451</a></td><td>    <a id="451c5" class="tk">b_x_idx_0</a> = (<a id="451c18" class="tk">uint8_T</a>)<a id="451c26" class="tk">*</a><a id="451c27" class="tk">x_size</a>;</td></tr>
<tr name="452" id="452">
<td><a id="l452" class='ln'>452</a></td><td>    <a id="452c5" class="tk">b_idx_0</a> = (<a id="452c16" class="tk">uint8_T</a>)<a id="452c24" class="tk">*</a><a id="452c25" class="tk">x_size</a>;</td></tr>
<tr name="453" id="453">
<td><a id="l453" class='ln'>453</a></td><td>    <a id="453c5" class="tk">*</a><a id="453c6" class="tk">idx_size</a> = (<a id="453c18" class="tk">int32_T</a>)<a id="453c26" class="tk">b_x_idx_0</a>;</td></tr>
<tr name="454" id="454">
<td><a id="l454" class='ln'>454</a></td><td>    <a id="454c5" class="tk">breathrate_B</a>.<a id="454c18" class="tk">nQuartets</a> = (<a id="454c31" class="tk">int32_T</a>)<a id="454c39" class="tk">b_x_idx_0</a>;</td></tr>
<tr name="455" id="455">
<td><a id="l455" class='ln'>455</a></td><td>    <span class="kw">if</span> (0 <a id="455c11" class="tk">&lt;=</a> <a id="455c14" class="tk">breathrate_B</a>.<a id="455c27" class="tk">nQuartets</a> <a id="455c37" class="tk">-</a> 1)</td></tr>
<tr name="456" id="456">
<td><a id="l456" class='ln'>456</a></td><td>    <span class="br">{</span></td></tr>
<tr name="457" id="457">
<td><a id="l457" class='ln'>457</a></td><td>        <a id="457c9" class="tk">memset</a>(<a id="457c16" class="tk">&amp;</a><a id="457c17" class="tk">idx_data</a>[0], 0, (<a id="457c34" class="tk">uint32_T</a>)<a id="457c43" class="tk">breathrate_B</a>.<a id="457c56" class="tk">nQuartets</a> <a id="457c66" class="tk">*</a> <span class="kw">sizeof</span></td></tr>
<tr name="458" id="458">
<td><a id="l458" class='ln'>458</a></td><td>               (<a id="458c17" class="tk">int32_T</a>));</td></tr>
<tr name="459" id="459">
<td><a id="l459" class='ln'>459</a></td><td>    <span class="br">}</span></td></tr>
<tr name="460" id="460">
<td><a id="l460" class='ln'>460</a></td><td></td></tr>
<tr name="461" id="461">
<td><a id="l461" class='ln'>461</a></td><td>    <span class="kw">if</span> (<a id="461c9" class="tk">*</a><a id="461c10" class="tk">x_size</a> <a id="461c17" class="tk">!=</a> 0)</td></tr>
<tr name="462" id="462">
<td><a id="l462" class='ln'>462</a></td><td>    <span class="br">{</span></td></tr>
<tr name="463" id="463">
<td><a id="l463" class='ln'>463</a></td><td>        <a id="463c9" class="tk">c_x_size</a> = <a id="463c20" class="tk">*</a><a id="463c21" class="tk">x_size</a>;</td></tr>
<tr name="464" id="464">
<td><a id="l464" class='ln'>464</a></td><td>        <a id="464c9" class="tk">breathrate_B</a>.<a id="464c22" class="tk">nQuartets</a> = <a id="464c34" class="tk">*</a><a id="464c35" class="tk">x_size</a>;</td></tr>
<tr name="465" id="465">
<td><a id="l465" class='ln'>465</a></td><td>        <span class="kw">if</span> (0 <a id="465c15" class="tk">&lt;=</a> <a id="465c18" class="tk">breathrate_B</a>.<a id="465c31" class="tk">nQuartets</a> <a id="465c41" class="tk">-</a> 1)</td></tr>
<tr name="466" id="466">
<td><a id="l466" class='ln'>466</a></td><td>        <span class="br">{</span></td></tr>
<tr name="467" id="467">
<td><a id="l467" class='ln'>467</a></td><td>            <a id="467c13" class="tk">memcpy</a>(<a id="467c20" class="tk">&amp;</a><a id="467c21" class="tk">breathrate_B</a>.<a id="467c34" class="tk">c_x_data</a>[0], <a id="467c47" class="tk">&amp;</a><a id="467c48" class="tk">x_data</a>[0], (<a id="467c60" class="tk">uint32_T</a>)</td></tr>
<tr name="468" id="468">
<td><a id="l468" class='ln'>468</a></td><td>                   <a id="468c20" class="tk">breathrate_B</a>.<a id="468c33" class="tk">nQuartets</a> <a id="468c43" class="tk">*</a> <span class="kw">sizeof</span>(<a id="468c52" class="tk">int32_T</a>));</td></tr>
<tr name="469" id="469">
<td><a id="l469" class='ln'>469</a></td><td>        <span class="br">}</span></td></tr>
<tr name="470" id="470">
<td><a id="l470" class='ln'>470</a></td><td></td></tr>
<tr name="471" id="471">
<td><a id="l471" class='ln'>471</a></td><td>        <a id="471c9" class="tk">*</a><a id="471c10" class="tk">idx_size</a> = (<a id="471c22" class="tk">int32_T</a>)<a id="471c30" class="tk">b_idx_0</a>;</td></tr>
<tr name="472" id="472">
<td><a id="l472" class='ln'>472</a></td><td>        <a id="472c9" class="tk">breathrate_B</a>.<a id="472c22" class="tk">nQuartets</a> = (<a id="472c35" class="tk">int32_T</a>)<a id="472c43" class="tk">b_idx_0</a>;</td></tr>
<tr name="473" id="473">
<td><a id="l473" class='ln'>473</a></td><td>        <span class="kw">if</span> (0 <a id="473c15" class="tk">&lt;=</a> <a id="473c18" class="tk">breathrate_B</a>.<a id="473c31" class="tk">nQuartets</a> <a id="473c41" class="tk">-</a> 1)</td></tr>
<tr name="474" id="474">
<td><a id="l474" class='ln'>474</a></td><td>        <span class="br">{</span></td></tr>
<tr name="475" id="475">
<td><a id="l475" class='ln'>475</a></td><td>            <a id="475c13" class="tk">memset</a>(<a id="475c20" class="tk">&amp;</a><a id="475c21" class="tk">idx_data</a>[0], 0, (<a id="475c38" class="tk">uint32_T</a>)<a id="475c47" class="tk">breathrate_B</a>.<a id="475c60" class="tk">nQuartets</a> <a id="475c70" class="tk">*</a> <span class="kw">sizeof</span></td></tr>
<tr name="476" id="476">
<td><a id="l476" class='ln'>476</a></td><td>                   (<a id="476c21" class="tk">int32_T</a>));</td></tr>
<tr name="477" id="477">
<td><a id="l477" class='ln'>477</a></td><td>        <span class="br">}</span></td></tr>
<tr name="478" id="478">
<td><a id="l478" class='ln'>478</a></td><td></td></tr>
<tr name="479" id="479">
<td><a id="l479" class='ln'>479</a></td><td>        <a id="479c9" class="tk">breathrate_B</a>.<a id="479c22" class="tk">x4</a>[0] = 0;</td></tr>
<tr name="480" id="480">
<td><a id="l480" class='ln'>480</a></td><td>        <a id="480c9" class="tk">breathrate_B</a>.<a id="480c22" class="tk">idx4</a>[0] = 0;</td></tr>
<tr name="481" id="481">
<td><a id="l481" class='ln'>481</a></td><td>        <a id="481c9" class="tk">breathrate_B</a>.<a id="481c22" class="tk">x4</a>[1] = 0;</td></tr>
<tr name="482" id="482">
<td><a id="l482" class='ln'>482</a></td><td>        <a id="482c9" class="tk">breathrate_B</a>.<a id="482c22" class="tk">idx4</a>[1] = 0;</td></tr>
<tr name="483" id="483">
<td><a id="l483" class='ln'>483</a></td><td>        <a id="483c9" class="tk">breathrate_B</a>.<a id="483c22" class="tk">x4</a>[2] = 0;</td></tr>
<tr name="484" id="484">
<td><a id="l484" class='ln'>484</a></td><td>        <a id="484c9" class="tk">breathrate_B</a>.<a id="484c22" class="tk">idx4</a>[2] = 0;</td></tr>
<tr name="485" id="485">
<td><a id="l485" class='ln'>485</a></td><td>        <a id="485c9" class="tk">breathrate_B</a>.<a id="485c22" class="tk">x4</a>[3] = 0;</td></tr>
<tr name="486" id="486">
<td><a id="l486" class='ln'>486</a></td><td>        <a id="486c9" class="tk">breathrate_B</a>.<a id="486c22" class="tk">idx4</a>[3] = 0;</td></tr>
<tr name="487" id="487">
<td><a id="l487" class='ln'>487</a></td><td>        <a id="487c9" class="tk">breathrate_B</a>.<a id="487c22" class="tk">nQuartets</a> = <a id="487c34" class="tk">*</a><a id="487c35" class="tk">x_size</a> <a id="487c42" class="tk">&gt;&gt;</a> 2;</td></tr>
<tr name="488" id="488">
<td><a id="l488" class='ln'>488</a></td><td>        <a id="488c9" class="tk">breathrate_B</a>.<a id="488c22" class="tk">nLeft</a> = 0;</td></tr>
<tr name="489" id="489">
<td><a id="l489" class='ln'>489</a></td><td>        <span class="kw">while</span> (<a id="489c16" class="tk">breathrate_B</a>.<a id="489c29" class="tk">nLeft</a> <a id="489c35" class="tk">&lt;=</a> <a id="489c38" class="tk">breathrate_B</a>.<a id="489c51" class="tk">nQuartets</a> <a id="489c61" class="tk">-</a> 1)</td></tr>
<tr name="490" id="490">
<td><a id="l490" class='ln'>490</a></td><td>        <span class="br">{</span></td></tr>
<tr name="491" id="491">
<td><a id="l491" class='ln'>491</a></td><td>            <a id="491c13" class="tk">breathrate_B</a>.<a id="491c26" class="tk">i</a> = <a id="491c30" class="tk">breathrate_B</a>.<a id="491c43" class="tk">nLeft</a> <a id="491c49" class="tk">&lt;&lt;</a> 2;</td></tr>
<tr name="492" id="492">
<td><a id="l492" class='ln'>492</a></td><td>            <a id="492c13" class="tk">breathrate_B</a>.<a id="492c26" class="tk">idx4</a>[0] = (<a id="492c37" class="tk">int16_T</a>)(<a id="492c46" class="tk">breathrate_B</a>.<a id="492c59" class="tk">i</a> <a id="492c61" class="tk">+</a> 1);</td></tr>
<tr name="493" id="493">
<td><a id="l493" class='ln'>493</a></td><td>            <a id="493c13" class="tk">breathrate_B</a>.<a id="493c26" class="tk">idx4</a>[1] = (<a id="493c37" class="tk">int16_T</a>)(<a id="493c46" class="tk">breathrate_B</a>.<a id="493c59" class="tk">i</a> <a id="493c61" class="tk">+</a> 2);</td></tr>
<tr name="494" id="494">
<td><a id="l494" class='ln'>494</a></td><td>            <a id="494c13" class="tk">breathrate_B</a>.<a id="494c26" class="tk">idx4</a>[2] = (<a id="494c37" class="tk">int16_T</a>)(<a id="494c46" class="tk">breathrate_B</a>.<a id="494c59" class="tk">i</a> <a id="494c61" class="tk">+</a> 3);</td></tr>
<tr name="495" id="495">
<td><a id="l495" class='ln'>495</a></td><td>            <a id="495c13" class="tk">breathrate_B</a>.<a id="495c26" class="tk">idx4</a>[3] = (<a id="495c37" class="tk">int16_T</a>)(<a id="495c46" class="tk">breathrate_B</a>.<a id="495c59" class="tk">i</a> <a id="495c61" class="tk">+</a> 4);</td></tr>
<tr name="496" id="496">
<td><a id="l496" class='ln'>496</a></td><td>            <a id="496c13" class="tk">breathrate_B</a>.<a id="496c26" class="tk">x4</a>[0] = <a id="496c34" class="tk">breathrate_B</a>.<a id="496c47" class="tk">c_x_data</a>[<a id="496c56" class="tk">breathrate_B</a>.<a id="496c69" class="tk">i</a>];</td></tr>
<tr name="497" id="497">
<td><a id="l497" class='ln'>497</a></td><td>            <a id="497c13" class="tk">breathrate_B</a>.<a id="497c26" class="tk">i1</a> = <a id="497c31" class="tk">breathrate_B</a>.<a id="497c44" class="tk">c_x_data</a>[<a id="497c53" class="tk">breathrate_B</a>.<a id="497c66" class="tk">i</a> <a id="497c68" class="tk">+</a> 1];</td></tr>
<tr name="498" id="498">
<td><a id="l498" class='ln'>498</a></td><td>            <a id="498c13" class="tk">breathrate_B</a>.<a id="498c26" class="tk">x4</a>[1] = <a id="498c34" class="tk">breathrate_B</a>.<a id="498c47" class="tk">i1</a>;</td></tr>
<tr name="499" id="499">
<td><a id="l499" class='ln'>499</a></td><td>            <a id="499c13" class="tk">i3</a> = <a id="499c18" class="tk">breathrate_B</a>.<a id="499c31" class="tk">c_x_data</a>[<a id="499c40" class="tk">breathrate_B</a>.<a id="499c53" class="tk">i</a> <a id="499c55" class="tk">+</a> 2];</td></tr>
<tr name="500" id="500">
<td><a id="l500" class='ln'>500</a></td><td>            <a id="500c13" class="tk">breathrate_B</a>.<a id="500c26" class="tk">x4</a>[2] = <a id="500c34" class="tk">i3</a>;</td></tr>
<tr name="501" id="501">
<td><a id="l501" class='ln'>501</a></td><td>            <a id="501c13" class="tk">i4</a> = <a id="501c18" class="tk">breathrate_B</a>.<a id="501c31" class="tk">c_x_data</a>[<a id="501c40" class="tk">breathrate_B</a>.<a id="501c53" class="tk">i</a> <a id="501c55" class="tk">+</a> 3];</td></tr>
<tr name="502" id="502">
<td><a id="l502" class='ln'>502</a></td><td>            <a id="502c13" class="tk">breathrate_B</a>.<a id="502c26" class="tk">x4</a>[3] = <a id="502c34" class="tk">i4</a>;</td></tr>
<tr name="503" id="503">
<td><a id="l503" class='ln'>503</a></td><td>            <span class="kw">if</span> (<a id="503c17" class="tk">breathrate_B</a>.<a id="503c30" class="tk">c_x_data</a>[<a id="503c39" class="tk">breathrate_B</a>.<a id="503c52" class="tk">i</a>] <a id="503c55" class="tk">&lt;=</a> <a id="503c58" class="tk">breathrate_B</a>.<a id="503c71" class="tk">i1</a>)</td></tr>
<tr name="504" id="504">
<td><a id="l504" class='ln'>504</a></td><td>            <span class="br">{</span></td></tr>
<tr name="505" id="505">
<td><a id="l505" class='ln'>505</a></td><td>                <a id="505c17" class="tk">breathrate_B</a>.<a id="505c30" class="tk">i1</a> = 1;</td></tr>
<tr name="506" id="506">
<td><a id="l506" class='ln'>506</a></td><td>                <a id="506c17" class="tk">breathrate_B</a>.<a id="506c30" class="tk">i2</a> = 2;</td></tr>
<tr name="507" id="507">
<td><a id="l507" class='ln'>507</a></td><td>            <span class="br">}</span></td></tr>
<tr name="508" id="508">
<td><a id="l508" class='ln'>508</a></td><td>            <span class="kw">else</span></td></tr>
<tr name="509" id="509">
<td><a id="l509" class='ln'>509</a></td><td>            <span class="br">{</span></td></tr>
<tr name="510" id="510">
<td><a id="l510" class='ln'>510</a></td><td>                <a id="510c17" class="tk">breathrate_B</a>.<a id="510c30" class="tk">i1</a> = 2;</td></tr>
<tr name="511" id="511">
<td><a id="l511" class='ln'>511</a></td><td>                <a id="511c17" class="tk">breathrate_B</a>.<a id="511c30" class="tk">i2</a> = 1;</td></tr>
<tr name="512" id="512">
<td><a id="l512" class='ln'>512</a></td><td>            <span class="br">}</span></td></tr>
<tr name="513" id="513">
<td><a id="l513" class='ln'>513</a></td><td></td></tr>
<tr name="514" id="514">
<td><a id="l514" class='ln'>514</a></td><td>            <span class="kw">if</span> (<a id="514c17" class="tk">i3</a> <a id="514c20" class="tk">&lt;=</a> <a id="514c23" class="tk">i4</a>)</td></tr>
<tr name="515" id="515">
<td><a id="l515" class='ln'>515</a></td><td>            <span class="br">{</span></td></tr>
<tr name="516" id="516">
<td><a id="l516" class='ln'>516</a></td><td>                <a id="516c17" class="tk">i3</a> = 3;</td></tr>
<tr name="517" id="517">
<td><a id="l517" class='ln'>517</a></td><td>                <a id="517c17" class="tk">i4</a> = 4;</td></tr>
<tr name="518" id="518">
<td><a id="l518" class='ln'>518</a></td><td>            <span class="br">}</span></td></tr>
<tr name="519" id="519">
<td><a id="l519" class='ln'>519</a></td><td>            <span class="kw">else</span></td></tr>
<tr name="520" id="520">
<td><a id="l520" class='ln'>520</a></td><td>            <span class="br">{</span></td></tr>
<tr name="521" id="521">
<td><a id="l521" class='ln'>521</a></td><td>                <a id="521c17" class="tk">i3</a> = 4;</td></tr>
<tr name="522" id="522">
<td><a id="l522" class='ln'>522</a></td><td>                <a id="522c17" class="tk">i4</a> = 3;</td></tr>
<tr name="523" id="523">
<td><a id="l523" class='ln'>523</a></td><td>            <span class="br">}</span></td></tr>
<tr name="524" id="524">
<td><a id="l524" class='ln'>524</a></td><td></td></tr>
<tr name="525" id="525">
<td><a id="l525" class='ln'>525</a></td><td>            <a id="525c13" class="tk">tmp</a> = <a id="525c19" class="tk">breathrate_B</a>.<a id="525c32" class="tk">x4</a>[<a id="525c35" class="tk">breathrate_B</a>.<a id="525c48" class="tk">i1</a> <a id="525c51" class="tk">-</a> 1];</td></tr>
<tr name="526" id="526">
<td><a id="l526" class='ln'>526</a></td><td>            <a id="526c13" class="tk">tmp_0</a> = <a id="526c21" class="tk">breathrate_B</a>.<a id="526c34" class="tk">x4</a>[<a id="526c37" class="tk">i3</a> <a id="526c40" class="tk">-</a> 1];</td></tr>
<tr name="527" id="527">
<td><a id="l527" class='ln'>527</a></td><td>            <span class="kw">if</span> (<a id="527c17" class="tk">tmp</a> <a id="527c21" class="tk">&lt;=</a> <a id="527c24" class="tk">tmp_0</a>)</td></tr>
<tr name="528" id="528">
<td><a id="l528" class='ln'>528</a></td><td>            <span class="br">{</span></td></tr>
<tr name="529" id="529">
<td><a id="l529" class='ln'>529</a></td><td>                <span class="kw">if</span> (<a id="529c21" class="tk">breathrate_B</a>.<a id="529c34" class="tk">x4</a>[<a id="529c37" class="tk">breathrate_B</a>.<a id="529c50" class="tk">i2</a> <a id="529c53" class="tk">-</a> 1] <a id="529c58" class="tk">&lt;=</a> <a id="529c61" class="tk">tmp_0</a>)</td></tr>
<tr name="530" id="530">
<td><a id="l530" class='ln'>530</a></td><td>                <span class="br">{</span></td></tr>
<tr name="531" id="531">
<td><a id="l531" class='ln'>531</a></td><td>                    <a id="531c21" class="tk">breathrate_B</a>.<a id="531c34" class="tk">perm</a>[0] = (<a id="531c45" class="tk">int8_T</a>)<a id="531c52" class="tk">breathrate_B</a>.<a id="531c65" class="tk">i1</a>;</td></tr>
<tr name="532" id="532">
<td><a id="l532" class='ln'>532</a></td><td>                    <a id="532c21" class="tk">breathrate_B</a>.<a id="532c34" class="tk">perm</a>[1] = (<a id="532c45" class="tk">int8_T</a>)<a id="532c52" class="tk">breathrate_B</a>.<a id="532c65" class="tk">i2</a>;</td></tr>
<tr name="533" id="533">
<td><a id="l533" class='ln'>533</a></td><td>                    <a id="533c21" class="tk">breathrate_B</a>.<a id="533c34" class="tk">perm</a>[2] = (<a id="533c45" class="tk">int8_T</a>)<a id="533c52" class="tk">i3</a>;</td></tr>
<tr name="534" id="534">
<td><a id="l534" class='ln'>534</a></td><td>                    <a id="534c21" class="tk">breathrate_B</a>.<a id="534c34" class="tk">perm</a>[3] = (<a id="534c45" class="tk">int8_T</a>)<a id="534c52" class="tk">i4</a>;</td></tr>
<tr name="535" id="535">
<td><a id="l535" class='ln'>535</a></td><td>                <span class="br">}</span></td></tr>
<tr name="536" id="536">
<td><a id="l536" class='ln'>536</a></td><td>                <span class="kw">else</span> <span class="kw">if</span> (<a id="536c26" class="tk">breathrate_B</a>.<a id="536c39" class="tk">x4</a>[<a id="536c42" class="tk">breathrate_B</a>.<a id="536c55" class="tk">i2</a> <a id="536c58" class="tk">-</a> 1] <a id="536c63" class="tk">&lt;=</a></td></tr>
<tr name="537" id="537">
<td><a id="l537" class='ln'>537</a></td><td>                         <a id="537c26" class="tk">breathrate_B</a>.<a id="537c39" class="tk">x4</a>[<a id="537c42" class="tk">i4</a> <a id="537c45" class="tk">-</a> 1])</td></tr>
<tr name="538" id="538">
<td><a id="l538" class='ln'>538</a></td><td>                <span class="br">{</span></td></tr>
<tr name="539" id="539">
<td><a id="l539" class='ln'>539</a></td><td>                    <a id="539c21" class="tk">breathrate_B</a>.<a id="539c34" class="tk">perm</a>[0] = (<a id="539c45" class="tk">int8_T</a>)<a id="539c52" class="tk">breathrate_B</a>.<a id="539c65" class="tk">i1</a>;</td></tr>
<tr name="540" id="540">
<td><a id="l540" class='ln'>540</a></td><td>                    <a id="540c21" class="tk">breathrate_B</a>.<a id="540c34" class="tk">perm</a>[1] = (<a id="540c45" class="tk">int8_T</a>)<a id="540c52" class="tk">i3</a>;</td></tr>
<tr name="541" id="541">
<td><a id="l541" class='ln'>541</a></td><td>                    <a id="541c21" class="tk">breathrate_B</a>.<a id="541c34" class="tk">perm</a>[2] = (<a id="541c45" class="tk">int8_T</a>)<a id="541c52" class="tk">breathrate_B</a>.<a id="541c65" class="tk">i2</a>;</td></tr>
<tr name="542" id="542">
<td><a id="l542" class='ln'>542</a></td><td>                    <a id="542c21" class="tk">breathrate_B</a>.<a id="542c34" class="tk">perm</a>[3] = (<a id="542c45" class="tk">int8_T</a>)<a id="542c52" class="tk">i4</a>;</td></tr>
<tr name="543" id="543">
<td><a id="l543" class='ln'>543</a></td><td>                <span class="br">}</span></td></tr>
<tr name="544" id="544">
<td><a id="l544" class='ln'>544</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="545" id="545">
<td><a id="l545" class='ln'>545</a></td><td>                <span class="br">{</span></td></tr>
<tr name="546" id="546">
<td><a id="l546" class='ln'>546</a></td><td>                    <a id="546c21" class="tk">breathrate_B</a>.<a id="546c34" class="tk">perm</a>[0] = (<a id="546c45" class="tk">int8_T</a>)<a id="546c52" class="tk">breathrate_B</a>.<a id="546c65" class="tk">i1</a>;</td></tr>
<tr name="547" id="547">
<td><a id="l547" class='ln'>547</a></td><td>                    <a id="547c21" class="tk">breathrate_B</a>.<a id="547c34" class="tk">perm</a>[1] = (<a id="547c45" class="tk">int8_T</a>)<a id="547c52" class="tk">i3</a>;</td></tr>
<tr name="548" id="548">
<td><a id="l548" class='ln'>548</a></td><td>                    <a id="548c21" class="tk">breathrate_B</a>.<a id="548c34" class="tk">perm</a>[2] = (<a id="548c45" class="tk">int8_T</a>)<a id="548c52" class="tk">i4</a>;</td></tr>
<tr name="549" id="549">
<td><a id="l549" class='ln'>549</a></td><td>                    <a id="549c21" class="tk">breathrate_B</a>.<a id="549c34" class="tk">perm</a>[3] = (<a id="549c45" class="tk">int8_T</a>)<a id="549c52" class="tk">breathrate_B</a>.<a id="549c65" class="tk">i2</a>;</td></tr>
<tr name="550" id="550">
<td><a id="l550" class='ln'>550</a></td><td>                <span class="br">}</span></td></tr>
<tr name="551" id="551">
<td><a id="l551" class='ln'>551</a></td><td>            <span class="br">}</span></td></tr>
<tr name="552" id="552">
<td><a id="l552" class='ln'>552</a></td><td>            <span class="kw">else</span></td></tr>
<tr name="553" id="553">
<td><a id="l553" class='ln'>553</a></td><td>            <span class="br">{</span></td></tr>
<tr name="554" id="554">
<td><a id="l554" class='ln'>554</a></td><td>                <a id="554c17" class="tk">tmp_0</a> = <a id="554c25" class="tk">breathrate_B</a>.<a id="554c38" class="tk">x4</a>[<a id="554c41" class="tk">i4</a> <a id="554c44" class="tk">-</a> 1];</td></tr>
<tr name="555" id="555">
<td><a id="l555" class='ln'>555</a></td><td>                <span class="kw">if</span> (<a id="555c21" class="tk">tmp</a> <a id="555c25" class="tk">&lt;=</a> <a id="555c28" class="tk">tmp_0</a>)</td></tr>
<tr name="556" id="556">
<td><a id="l556" class='ln'>556</a></td><td>                <span class="br">{</span></td></tr>
<tr name="557" id="557">
<td><a id="l557" class='ln'>557</a></td><td>                    <span class="kw">if</span> (<a id="557c25" class="tk">breathrate_B</a>.<a id="557c38" class="tk">x4</a>[<a id="557c41" class="tk">breathrate_B</a>.<a id="557c54" class="tk">i2</a> <a id="557c57" class="tk">-</a> 1] <a id="557c62" class="tk">&lt;=</a> <a id="557c65" class="tk">tmp_0</a>)</td></tr>
<tr name="558" id="558">
<td><a id="l558" class='ln'>558</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="559" id="559">
<td><a id="l559" class='ln'>559</a></td><td>                        <a id="559c25" class="tk">breathrate_B</a>.<a id="559c38" class="tk">perm</a>[0] = (<a id="559c49" class="tk">int8_T</a>)<a id="559c56" class="tk">i3</a>;</td></tr>
<tr name="560" id="560">
<td><a id="l560" class='ln'>560</a></td><td>                        <a id="560c25" class="tk">breathrate_B</a>.<a id="560c38" class="tk">perm</a>[1] = (<a id="560c49" class="tk">int8_T</a>)<a id="560c56" class="tk">breathrate_B</a>.<a id="560c69" class="tk">i1</a>;</td></tr>
<tr name="561" id="561">
<td><a id="l561" class='ln'>561</a></td><td>                        <a id="561c25" class="tk">breathrate_B</a>.<a id="561c38" class="tk">perm</a>[2] = (<a id="561c49" class="tk">int8_T</a>)<a id="561c56" class="tk">breathrate_B</a>.<a id="561c69" class="tk">i2</a>;</td></tr>
<tr name="562" id="562">
<td><a id="l562" class='ln'>562</a></td><td>                        <a id="562c25" class="tk">breathrate_B</a>.<a id="562c38" class="tk">perm</a>[3] = (<a id="562c49" class="tk">int8_T</a>)<a id="562c56" class="tk">i4</a>;</td></tr>
<tr name="563" id="563">
<td><a id="l563" class='ln'>563</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="564" id="564">
<td><a id="l564" class='ln'>564</a></td><td>                    <span class="kw">else</span></td></tr>
<tr name="565" id="565">
<td><a id="l565" class='ln'>565</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="566" id="566">
<td><a id="l566" class='ln'>566</a></td><td>                        <a id="566c25" class="tk">breathrate_B</a>.<a id="566c38" class="tk">perm</a>[0] = (<a id="566c49" class="tk">int8_T</a>)<a id="566c56" class="tk">i3</a>;</td></tr>
<tr name="567" id="567">
<td><a id="l567" class='ln'>567</a></td><td>                        <a id="567c25" class="tk">breathrate_B</a>.<a id="567c38" class="tk">perm</a>[1] = (<a id="567c49" class="tk">int8_T</a>)<a id="567c56" class="tk">breathrate_B</a>.<a id="567c69" class="tk">i1</a>;</td></tr>
<tr name="568" id="568">
<td><a id="l568" class='ln'>568</a></td><td>                        <a id="568c25" class="tk">breathrate_B</a>.<a id="568c38" class="tk">perm</a>[2] = (<a id="568c49" class="tk">int8_T</a>)<a id="568c56" class="tk">i4</a>;</td></tr>
<tr name="569" id="569">
<td><a id="l569" class='ln'>569</a></td><td>                        <a id="569c25" class="tk">breathrate_B</a>.<a id="569c38" class="tk">perm</a>[3] = (<a id="569c49" class="tk">int8_T</a>)<a id="569c56" class="tk">breathrate_B</a>.<a id="569c69" class="tk">i2</a>;</td></tr>
<tr name="570" id="570">
<td><a id="l570" class='ln'>570</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="571" id="571">
<td><a id="l571" class='ln'>571</a></td><td>                <span class="br">}</span></td></tr>
<tr name="572" id="572">
<td><a id="l572" class='ln'>572</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="573" id="573">
<td><a id="l573" class='ln'>573</a></td><td>                <span class="br">{</span></td></tr>
<tr name="574" id="574">
<td><a id="l574" class='ln'>574</a></td><td>                    <a id="574c21" class="tk">breathrate_B</a>.<a id="574c34" class="tk">perm</a>[0] = (<a id="574c45" class="tk">int8_T</a>)<a id="574c52" class="tk">i3</a>;</td></tr>
<tr name="575" id="575">
<td><a id="l575" class='ln'>575</a></td><td>                    <a id="575c21" class="tk">breathrate_B</a>.<a id="575c34" class="tk">perm</a>[1] = (<a id="575c45" class="tk">int8_T</a>)<a id="575c52" class="tk">i4</a>;</td></tr>
<tr name="576" id="576">
<td><a id="l576" class='ln'>576</a></td><td>                    <a id="576c21" class="tk">breathrate_B</a>.<a id="576c34" class="tk">perm</a>[2] = (<a id="576c45" class="tk">int8_T</a>)<a id="576c52" class="tk">breathrate_B</a>.<a id="576c65" class="tk">i1</a>;</td></tr>
<tr name="577" id="577">
<td><a id="l577" class='ln'>577</a></td><td>                    <a id="577c21" class="tk">breathrate_B</a>.<a id="577c34" class="tk">perm</a>[3] = (<a id="577c45" class="tk">int8_T</a>)<a id="577c52" class="tk">breathrate_B</a>.<a id="577c65" class="tk">i2</a>;</td></tr>
<tr name="578" id="578">
<td><a id="l578" class='ln'>578</a></td><td>                <span class="br">}</span></td></tr>
<tr name="579" id="579">
<td><a id="l579" class='ln'>579</a></td><td>            <span class="br">}</span></td></tr>
<tr name="580" id="580">
<td><a id="l580" class='ln'>580</a></td><td></td></tr>
<tr name="581" id="581">
<td><a id="l581" class='ln'>581</a></td><td>            <a id="581c13" class="tk">breathrate_B</a>.<a id="581c26" class="tk">i1</a> = (<a id="581c32" class="tk">int32_T</a>)<a id="581c40" class="tk">breathrate_B</a>.<a id="581c53" class="tk">perm</a>[0] <a id="581c61" class="tk">-</a> 1;</td></tr>
<tr name="582" id="582">
<td><a id="l582" class='ln'>582</a></td><td>            <a id="582c13" class="tk">idx_data</a>[<a id="582c22" class="tk">breathrate_B</a>.<a id="582c35" class="tk">i</a>] = (<a id="582c41" class="tk">int32_T</a>)</td></tr>
<tr name="583" id="583">
<td><a id="l583" class='ln'>583</a></td><td>                <a id="583c17" class="tk">breathrate_B</a>.<a id="583c30" class="tk">idx4</a>[<a id="583c35" class="tk">breathrate_B</a>.<a id="583c48" class="tk">i1</a>];</td></tr>
<tr name="584" id="584">
<td><a id="l584" class='ln'>584</a></td><td>            <a id="584c13" class="tk">breathrate_B</a>.<a id="584c26" class="tk">i2</a> = (<a id="584c32" class="tk">int32_T</a>)<a id="584c40" class="tk">breathrate_B</a>.<a id="584c53" class="tk">perm</a>[1] <a id="584c61" class="tk">-</a> 1;</td></tr>
<tr name="585" id="585">
<td><a id="l585" class='ln'>585</a></td><td>            <a id="585c13" class="tk">idx_data</a>[<a id="585c22" class="tk">breathrate_B</a>.<a id="585c35" class="tk">i</a> <a id="585c37" class="tk">+</a> 1] = (<a id="585c45" class="tk">int32_T</a>)</td></tr>
<tr name="586" id="586">
<td><a id="l586" class='ln'>586</a></td><td>                <a id="586c17" class="tk">breathrate_B</a>.<a id="586c30" class="tk">idx4</a>[<a id="586c35" class="tk">breathrate_B</a>.<a id="586c48" class="tk">i2</a>];</td></tr>
<tr name="587" id="587">
<td><a id="l587" class='ln'>587</a></td><td>            <a id="587c13" class="tk">i3</a> = (<a id="587c19" class="tk">int32_T</a>)<a id="587c27" class="tk">breathrate_B</a>.<a id="587c40" class="tk">perm</a>[2] <a id="587c48" class="tk">-</a> 1;</td></tr>
<tr name="588" id="588">
<td><a id="l588" class='ln'>588</a></td><td>            <a id="588c13" class="tk">idx_data</a>[<a id="588c22" class="tk">breathrate_B</a>.<a id="588c35" class="tk">i</a> <a id="588c37" class="tk">+</a> 2] = (<a id="588c45" class="tk">int32_T</a>)<a id="588c53" class="tk">breathrate_B</a>.<a id="588c66" class="tk">idx4</a>[<a id="588c71" class="tk">i3</a>];</td></tr>
<tr name="589" id="589">
<td><a id="l589" class='ln'>589</a></td><td>            <a id="589c13" class="tk">i4</a> = (<a id="589c19" class="tk">int32_T</a>)<a id="589c27" class="tk">breathrate_B</a>.<a id="589c40" class="tk">perm</a>[3] <a id="589c48" class="tk">-</a> 1;</td></tr>
<tr name="590" id="590">
<td><a id="l590" class='ln'>590</a></td><td>            <a id="590c13" class="tk">idx_data</a>[<a id="590c22" class="tk">breathrate_B</a>.<a id="590c35" class="tk">i</a> <a id="590c37" class="tk">+</a> 3] = (<a id="590c45" class="tk">int32_T</a>)<a id="590c53" class="tk">breathrate_B</a>.<a id="590c66" class="tk">idx4</a>[<a id="590c71" class="tk">i4</a>];</td></tr>
<tr name="591" id="591">
<td><a id="l591" class='ln'>591</a></td><td>            <a id="591c13" class="tk">breathrate_B</a>.<a id="591c26" class="tk">c_x_data</a>[<a id="591c35" class="tk">breathrate_B</a>.<a id="591c48" class="tk">i</a>] =</td></tr>
<tr name="592" id="592">
<td><a id="l592" class='ln'>592</a></td><td>                <a id="592c17" class="tk">breathrate_B</a>.<a id="592c30" class="tk">x4</a>[<a id="592c33" class="tk">breathrate_B</a>.<a id="592c46" class="tk">i1</a>];</td></tr>
<tr name="593" id="593">
<td><a id="l593" class='ln'>593</a></td><td>            <a id="593c13" class="tk">breathrate_B</a>.<a id="593c26" class="tk">c_x_data</a>[<a id="593c35" class="tk">breathrate_B</a>.<a id="593c48" class="tk">i</a> <a id="593c50" class="tk">+</a> 1] =</td></tr>
<tr name="594" id="594">
<td><a id="l594" class='ln'>594</a></td><td>                <a id="594c17" class="tk">breathrate_B</a>.<a id="594c30" class="tk">x4</a>[<a id="594c33" class="tk">breathrate_B</a>.<a id="594c46" class="tk">i2</a>];</td></tr>
<tr name="595" id="595">
<td><a id="l595" class='ln'>595</a></td><td>            <a id="595c13" class="tk">breathrate_B</a>.<a id="595c26" class="tk">c_x_data</a>[<a id="595c35" class="tk">breathrate_B</a>.<a id="595c48" class="tk">i</a> <a id="595c50" class="tk">+</a> 2] = <a id="595c57" class="tk">breathrate_B</a>.<a id="595c70" class="tk">x4</a>[<a id="595c73" class="tk">i3</a>];</td></tr>
<tr name="596" id="596">
<td><a id="l596" class='ln'>596</a></td><td>            <a id="596c13" class="tk">breathrate_B</a>.<a id="596c26" class="tk">c_x_data</a>[<a id="596c35" class="tk">breathrate_B</a>.<a id="596c48" class="tk">i</a> <a id="596c50" class="tk">+</a> 3] = <a id="596c57" class="tk">breathrate_B</a>.<a id="596c70" class="tk">x4</a>[<a id="596c73" class="tk">i4</a>];</td></tr>
<tr name="597" id="597">
<td><a id="l597" class='ln'>597</a></td><td>            <a id="597c13" class="tk">breathrate_B</a>.<a id="597c26" class="tk">nLeft</a><a id="597c31" class="tk">++</a>;</td></tr>
<tr name="598" id="598">
<td><a id="l598" class='ln'>598</a></td><td>        <span class="br">}</span></td></tr>
<tr name="599" id="599">
<td><a id="l599" class='ln'>599</a></td><td></td></tr>
<tr name="600" id="600">
<td><a id="l600" class='ln'>600</a></td><td>        <a id="600c9" class="tk">breathrate_B</a>.<a id="600c22" class="tk">nQuartets</a> <a id="600c32" class="tk">&lt;&lt;=</a> 2;</td></tr>
<tr name="601" id="601">
<td><a id="l601" class='ln'>601</a></td><td>        <a id="601c9" class="tk">breathrate_B</a>.<a id="601c22" class="tk">nLeft</a> = (<a id="601c31" class="tk">*</a><a id="601c32" class="tk">x_size</a> <a id="601c39" class="tk">-</a> <a id="601c41" class="tk">breathrate_B</a>.<a id="601c54" class="tk">nQuartets</a>) <a id="601c65" class="tk">-</a> 1;</td></tr>
<tr name="602" id="602">
<td><a id="l602" class='ln'>602</a></td><td>        <span class="kw">if</span> (<a id="602c13" class="tk">breathrate_B</a>.<a id="602c26" class="tk">nLeft</a> <a id="602c32" class="tk">+</a> 1 <a id="602c36" class="tk">&gt;</a> 0)</td></tr>
<tr name="603" id="603">
<td><a id="l603" class='ln'>603</a></td><td>        <span class="br">{</span></td></tr>
<tr name="604" id="604">
<td><a id="l604" class='ln'>604</a></td><td>            <a id="604c13" class="tk">breathrate_B</a>.<a id="604c26" class="tk">i</a> = 0;</td></tr>
<tr name="605" id="605">
<td><a id="l605" class='ln'>605</a></td><td>            <span class="kw">while</span> (<a id="605c20" class="tk">breathrate_B</a>.<a id="605c33" class="tk">i</a> <a id="605c35" class="tk">&lt;=</a> <a id="605c38" class="tk">breathrate_B</a>.<a id="605c51" class="tk">nLeft</a>)</td></tr>
<tr name="606" id="606">
<td><a id="l606" class='ln'>606</a></td><td>            <span class="br">{</span></td></tr>
<tr name="607" id="607">
<td><a id="l607" class='ln'>607</a></td><td>                <a id="607c17" class="tk">breathrate_B</a>.<a id="607c30" class="tk">i1</a> = <a id="607c35" class="tk">breathrate_B</a>.<a id="607c48" class="tk">nQuartets</a> <a id="607c58" class="tk">+</a> <a id="607c60" class="tk">breathrate_B</a>.<a id="607c73" class="tk">i</a>;</td></tr>
<tr name="608" id="608">
<td><a id="l608" class='ln'>608</a></td><td>                <a id="608c17" class="tk">breathrate_B</a>.<a id="608c30" class="tk">idx4</a>[<a id="608c35" class="tk">breathrate_B</a>.<a id="608c48" class="tk">i</a>] = (<a id="608c54" class="tk">int16_T</a>)(<a id="608c63" class="tk">breathrate_B</a>.<a id="608c76" class="tk">i1</a> <a id="608c79" class="tk">+</a></td></tr>
<tr name="609" id="609">
<td><a id="l609" class='ln'>609</a></td><td>                    1);</td></tr>
<tr name="610" id="610">
<td><a id="l610" class='ln'>610</a></td><td>                <a id="610c17" class="tk">breathrate_B</a>.<a id="610c30" class="tk">x4</a>[<a id="610c33" class="tk">breathrate_B</a>.<a id="610c46" class="tk">i</a>] =</td></tr>
<tr name="611" id="611">
<td><a id="l611" class='ln'>611</a></td><td>                    <a id="611c21" class="tk">breathrate_B</a>.<a id="611c34" class="tk">c_x_data</a>[<a id="611c43" class="tk">breathrate_B</a>.<a id="611c56" class="tk">i1</a>];</td></tr>
<tr name="612" id="612">
<td><a id="l612" class='ln'>612</a></td><td>                <a id="612c17" class="tk">breathrate_B</a>.<a id="612c30" class="tk">i</a><a id="612c31" class="tk">++</a>;</td></tr>
<tr name="613" id="613">
<td><a id="l613" class='ln'>613</a></td><td>            <span class="br">}</span></td></tr>
<tr name="614" id="614">
<td><a id="l614" class='ln'>614</a></td><td></td></tr>
<tr name="615" id="615">
<td><a id="l615" class='ln'>615</a></td><td>            <a id="615c13" class="tk">breathrate_B</a>.<a id="615c26" class="tk">perm</a>[1] = 0;</td></tr>
<tr name="616" id="616">
<td><a id="l616" class='ln'>616</a></td><td>            <a id="616c13" class="tk">breathrate_B</a>.<a id="616c26" class="tk">perm</a>[2] = 0;</td></tr>
<tr name="617" id="617">
<td><a id="l617" class='ln'>617</a></td><td>            <a id="617c13" class="tk">breathrate_B</a>.<a id="617c26" class="tk">perm</a>[3] = 0;</td></tr>
<tr name="618" id="618">
<td><a id="l618" class='ln'>618</a></td><td>            <span class="kw">switch</span> (<a id="618c21" class="tk">breathrate_B</a>.<a id="618c34" class="tk">nLeft</a> <a id="618c40" class="tk">+</a> 1)</td></tr>
<tr name="619" id="619">
<td><a id="l619" class='ln'>619</a></td><td>            <span class="br">{</span></td></tr>
<tr name="620" id="620">
<td><a id="l620" class='ln'>620</a></td><td>              <span class="kw">case</span> 1<a id="620c21" class="tk">:</a></td></tr>
<tr name="621" id="621">
<td><a id="l621" class='ln'>621</a></td><td>                <a id="621c17" class="tk">breathrate_B</a>.<a id="621c30" class="tk">perm</a>[0] = 1;</td></tr>
<tr name="622" id="622">
<td><a id="l622" class='ln'>622</a></td><td>                <span class="kw">break</span>;</td></tr>
<tr name="623" id="623">
<td><a id="l623" class='ln'>623</a></td><td></td></tr>
<tr name="624" id="624">
<td><a id="l624" class='ln'>624</a></td><td>              <span class="kw">case</span> 2<a id="624c21" class="tk">:</a></td></tr>
<tr name="625" id="625">
<td><a id="l625" class='ln'>625</a></td><td>                <span class="kw">if</span> (<a id="625c21" class="tk">breathrate_B</a>.<a id="625c34" class="tk">x4</a>[0] <a id="625c40" class="tk">&lt;=</a> <a id="625c43" class="tk">breathrate_B</a>.<a id="625c56" class="tk">x4</a>[1])</td></tr>
<tr name="626" id="626">
<td><a id="l626" class='ln'>626</a></td><td>                <span class="br">{</span></td></tr>
<tr name="627" id="627">
<td><a id="l627" class='ln'>627</a></td><td>                    <a id="627c21" class="tk">breathrate_B</a>.<a id="627c34" class="tk">perm</a>[0] = 1;</td></tr>
<tr name="628" id="628">
<td><a id="l628" class='ln'>628</a></td><td>                    <a id="628c21" class="tk">breathrate_B</a>.<a id="628c34" class="tk">perm</a>[1] = 2;</td></tr>
<tr name="629" id="629">
<td><a id="l629" class='ln'>629</a></td><td>                <span class="br">}</span></td></tr>
<tr name="630" id="630">
<td><a id="l630" class='ln'>630</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="631" id="631">
<td><a id="l631" class='ln'>631</a></td><td>                <span class="br">{</span></td></tr>
<tr name="632" id="632">
<td><a id="l632" class='ln'>632</a></td><td>                    <a id="632c21" class="tk">breathrate_B</a>.<a id="632c34" class="tk">perm</a>[0] = 2;</td></tr>
<tr name="633" id="633">
<td><a id="l633" class='ln'>633</a></td><td>                    <a id="633c21" class="tk">breathrate_B</a>.<a id="633c34" class="tk">perm</a>[1] = 1;</td></tr>
<tr name="634" id="634">
<td><a id="l634" class='ln'>634</a></td><td>                <span class="br">}</span></td></tr>
<tr name="635" id="635">
<td><a id="l635" class='ln'>635</a></td><td>                <span class="kw">break</span>;</td></tr>
<tr name="636" id="636">
<td><a id="l636" class='ln'>636</a></td><td></td></tr>
<tr name="637" id="637">
<td><a id="l637" class='ln'>637</a></td><td>              <span class="kw">default</span><a id="637c22" class="tk">:</a></td></tr>
<tr name="638" id="638">
<td><a id="l638" class='ln'>638</a></td><td>                <span class="kw">if</span> (<a id="638c21" class="tk">breathrate_B</a>.<a id="638c34" class="tk">x4</a>[0] <a id="638c40" class="tk">&lt;=</a> <a id="638c43" class="tk">breathrate_B</a>.<a id="638c56" class="tk">x4</a>[1])</td></tr>
<tr name="639" id="639">
<td><a id="l639" class='ln'>639</a></td><td>                <span class="br">{</span></td></tr>
<tr name="640" id="640">
<td><a id="l640" class='ln'>640</a></td><td>                    <span class="kw">if</span> (<a id="640c25" class="tk">breathrate_B</a>.<a id="640c38" class="tk">x4</a>[1] <a id="640c44" class="tk">&lt;=</a> <a id="640c47" class="tk">breathrate_B</a>.<a id="640c60" class="tk">x4</a>[2])</td></tr>
<tr name="641" id="641">
<td><a id="l641" class='ln'>641</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="642" id="642">
<td><a id="l642" class='ln'>642</a></td><td>                        <a id="642c25" class="tk">breathrate_B</a>.<a id="642c38" class="tk">perm</a>[0] = 1;</td></tr>
<tr name="643" id="643">
<td><a id="l643" class='ln'>643</a></td><td>                        <a id="643c25" class="tk">breathrate_B</a>.<a id="643c38" class="tk">perm</a>[1] = 2;</td></tr>
<tr name="644" id="644">
<td><a id="l644" class='ln'>644</a></td><td>                        <a id="644c25" class="tk">breathrate_B</a>.<a id="644c38" class="tk">perm</a>[2] = 3;</td></tr>
<tr name="645" id="645">
<td><a id="l645" class='ln'>645</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="646" id="646">
<td><a id="l646" class='ln'>646</a></td><td>                    <span class="kw">else</span> <span class="kw">if</span> (<a id="646c30" class="tk">breathrate_B</a>.<a id="646c43" class="tk">x4</a>[0] <a id="646c49" class="tk">&lt;=</a> <a id="646c52" class="tk">breathrate_B</a>.<a id="646c65" class="tk">x4</a>[2])</td></tr>
<tr name="647" id="647">
<td><a id="l647" class='ln'>647</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="648" id="648">
<td><a id="l648" class='ln'>648</a></td><td>                        <a id="648c25" class="tk">breathrate_B</a>.<a id="648c38" class="tk">perm</a>[0] = 1;</td></tr>
<tr name="649" id="649">
<td><a id="l649" class='ln'>649</a></td><td>                        <a id="649c25" class="tk">breathrate_B</a>.<a id="649c38" class="tk">perm</a>[1] = 3;</td></tr>
<tr name="650" id="650">
<td><a id="l650" class='ln'>650</a></td><td>                        <a id="650c25" class="tk">breathrate_B</a>.<a id="650c38" class="tk">perm</a>[2] = 2;</td></tr>
<tr name="651" id="651">
<td><a id="l651" class='ln'>651</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="652" id="652">
<td><a id="l652" class='ln'>652</a></td><td>                    <span class="kw">else</span></td></tr>
<tr name="653" id="653">
<td><a id="l653" class='ln'>653</a></td><td>                    <span class="br">{</span></td></tr>
<tr name="654" id="654">
<td><a id="l654" class='ln'>654</a></td><td>                        <a id="654c25" class="tk">breathrate_B</a>.<a id="654c38" class="tk">perm</a>[0] = 3;</td></tr>
<tr name="655" id="655">
<td><a id="l655" class='ln'>655</a></td><td>                        <a id="655c25" class="tk">breathrate_B</a>.<a id="655c38" class="tk">perm</a>[1] = 1;</td></tr>
<tr name="656" id="656">
<td><a id="l656" class='ln'>656</a></td><td>                        <a id="656c25" class="tk">breathrate_B</a>.<a id="656c38" class="tk">perm</a>[2] = 2;</td></tr>
<tr name="657" id="657">
<td><a id="l657" class='ln'>657</a></td><td>                    <span class="br">}</span></td></tr>
<tr name="658" id="658">
<td><a id="l658" class='ln'>658</a></td><td>                <span class="br">}</span></td></tr>
<tr name="659" id="659">
<td><a id="l659" class='ln'>659</a></td><td>                <span class="kw">else</span> <span class="kw">if</span> (<a id="659c26" class="tk">breathrate_B</a>.<a id="659c39" class="tk">x4</a>[0] <a id="659c45" class="tk">&lt;=</a> <a id="659c48" class="tk">breathrate_B</a>.<a id="659c61" class="tk">x4</a>[2])</td></tr>
<tr name="660" id="660">
<td><a id="l660" class='ln'>660</a></td><td>                <span class="br">{</span></td></tr>
<tr name="661" id="661">
<td><a id="l661" class='ln'>661</a></td><td>                    <a id="661c21" class="tk">breathrate_B</a>.<a id="661c34" class="tk">perm</a>[0] = 2;</td></tr>
<tr name="662" id="662">
<td><a id="l662" class='ln'>662</a></td><td>                    <a id="662c21" class="tk">breathrate_B</a>.<a id="662c34" class="tk">perm</a>[1] = 1;</td></tr>
<tr name="663" id="663">
<td><a id="l663" class='ln'>663</a></td><td>                    <a id="663c21" class="tk">breathrate_B</a>.<a id="663c34" class="tk">perm</a>[2] = 3;</td></tr>
<tr name="664" id="664">
<td><a id="l664" class='ln'>664</a></td><td>                <span class="br">}</span></td></tr>
<tr name="665" id="665">
<td><a id="l665" class='ln'>665</a></td><td>                <span class="kw">else</span> <span class="kw">if</span> (<a id="665c26" class="tk">breathrate_B</a>.<a id="665c39" class="tk">x4</a>[1] <a id="665c45" class="tk">&lt;=</a> <a id="665c48" class="tk">breathrate_B</a>.<a id="665c61" class="tk">x4</a>[2])</td></tr>
<tr name="666" id="666">
<td><a id="l666" class='ln'>666</a></td><td>                <span class="br">{</span></td></tr>
<tr name="667" id="667">
<td><a id="l667" class='ln'>667</a></td><td>                    <a id="667c21" class="tk">breathrate_B</a>.<a id="667c34" class="tk">perm</a>[0] = 2;</td></tr>
<tr name="668" id="668">
<td><a id="l668" class='ln'>668</a></td><td>                    <a id="668c21" class="tk">breathrate_B</a>.<a id="668c34" class="tk">perm</a>[1] = 3;</td></tr>
<tr name="669" id="669">
<td><a id="l669" class='ln'>669</a></td><td>                    <a id="669c21" class="tk">breathrate_B</a>.<a id="669c34" class="tk">perm</a>[2] = 1;</td></tr>
<tr name="670" id="670">
<td><a id="l670" class='ln'>670</a></td><td>                <span class="br">}</span></td></tr>
<tr name="671" id="671">
<td><a id="l671" class='ln'>671</a></td><td>                <span class="kw">else</span></td></tr>
<tr name="672" id="672">
<td><a id="l672" class='ln'>672</a></td><td>                <span class="br">{</span></td></tr>
<tr name="673" id="673">
<td><a id="l673" class='ln'>673</a></td><td>                    <a id="673c21" class="tk">breathrate_B</a>.<a id="673c34" class="tk">perm</a>[0] = 3;</td></tr>
<tr name="674" id="674">
<td><a id="l674" class='ln'>674</a></td><td>                    <a id="674c21" class="tk">breathrate_B</a>.<a id="674c34" class="tk">perm</a>[1] = 2;</td></tr>
<tr name="675" id="675">
<td><a id="l675" class='ln'>675</a></td><td>                    <a id="675c21" class="tk">breathrate_B</a>.<a id="675c34" class="tk">perm</a>[2] = 1;</td></tr>
<tr name="676" id="676">
<td><a id="l676" class='ln'>676</a></td><td>                <span class="br">}</span></td></tr>
<tr name="677" id="677">
<td><a id="l677" class='ln'>677</a></td><td>                <span class="kw">break</span>;</td></tr>
<tr name="678" id="678">
<td><a id="l678" class='ln'>678</a></td><td>            <span class="br">}</span></td></tr>
<tr name="679" id="679">
<td><a id="l679" class='ln'>679</a></td><td></td></tr>
<tr name="680" id="680">
<td><a id="l680" class='ln'>680</a></td><td>            <a id="680c13" class="tk">breathrate_B</a>.<a id="680c26" class="tk">i</a> = 0;</td></tr>
<tr name="681" id="681">
<td><a id="l681" class='ln'>681</a></td><td>            <span class="kw">while</span> (<a id="681c20" class="tk">breathrate_B</a>.<a id="681c33" class="tk">i</a> <a id="681c35" class="tk">&lt;=</a> <a id="681c38" class="tk">breathrate_B</a>.<a id="681c51" class="tk">nLeft</a>)</td></tr>
<tr name="682" id="682">
<td><a id="l682" class='ln'>682</a></td><td>            <span class="br">{</span></td></tr>
<tr name="683" id="683">
<td><a id="l683" class='ln'>683</a></td><td>                <a id="683c17" class="tk">breathrate_B</a>.<a id="683c30" class="tk">i1</a> = (<a id="683c36" class="tk">int32_T</a>)<a id="683c44" class="tk">breathrate_B</a>.<a id="683c57" class="tk">perm</a>[<a id="683c62" class="tk">breathrate_B</a>.<a id="683c75" class="tk">i</a>] <a id="683c78" class="tk">-</a> 1;</td></tr>
<tr name="684" id="684">
<td><a id="l684" class='ln'>684</a></td><td>                <a id="684c17" class="tk">breathrate_B</a>.<a id="684c30" class="tk">i2</a> = <a id="684c35" class="tk">breathrate_B</a>.<a id="684c48" class="tk">nQuartets</a> <a id="684c58" class="tk">+</a> <a id="684c60" class="tk">breathrate_B</a>.<a id="684c73" class="tk">i</a>;</td></tr>
<tr name="685" id="685">
<td><a id="l685" class='ln'>685</a></td><td>                <a id="685c17" class="tk">idx_data</a>[<a id="685c26" class="tk">breathrate_B</a>.<a id="685c39" class="tk">i2</a>] = (<a id="685c46" class="tk">int32_T</a>)</td></tr>
<tr name="686" id="686">
<td><a id="l686" class='ln'>686</a></td><td>                    <a id="686c21" class="tk">breathrate_B</a>.<a id="686c34" class="tk">idx4</a>[<a id="686c39" class="tk">breathrate_B</a>.<a id="686c52" class="tk">i1</a>];</td></tr>
<tr name="687" id="687">
<td><a id="l687" class='ln'>687</a></td><td>                <a id="687c17" class="tk">breathrate_B</a>.<a id="687c30" class="tk">c_x_data</a>[<a id="687c39" class="tk">breathrate_B</a>.<a id="687c52" class="tk">i2</a>] =</td></tr>
<tr name="688" id="688">
<td><a id="l688" class='ln'>688</a></td><td>                    <a id="688c21" class="tk">breathrate_B</a>.<a id="688c34" class="tk">x4</a>[<a id="688c37" class="tk">breathrate_B</a>.<a id="688c50" class="tk">i1</a>];</td></tr>
<tr name="689" id="689">
<td><a id="l689" class='ln'>689</a></td><td>                <a id="689c17" class="tk">breathrate_B</a>.<a id="689c30" class="tk">i</a><a id="689c31" class="tk">++</a>;</td></tr>
<tr name="690" id="690">
<td><a id="l690" class='ln'>690</a></td><td>            <span class="br">}</span></td></tr>
<tr name="691" id="691">
<td><a id="l691" class='ln'>691</a></td><td>        <span class="br">}</span></td></tr>
<tr name="692" id="692">
<td><a id="l692" class='ln'>692</a></td><td></td></tr>
<tr name="693" id="693">
<td><a id="l693" class='ln'>693</a></td><td>        <span class="kw">if</span> (<a id="693c13" class="tk">*</a><a id="693c14" class="tk">x_size</a> <a id="693c21" class="tk">&gt;</a> 1)</td></tr>
<tr name="694" id="694">
<td><a id="l694" class='ln'>694</a></td><td>        <span class="br">{</span></td></tr>
<tr name="695" id="695">
<td><a id="l695" class='ln'>695</a></td><td>            <a id="695c13" class="tk">breathrate_B</a>.<a id="695c26" class="tk">nQuartets</a> = (<a id="695c39" class="tk">int32_T</a>)<a id="695c47" class="tk">b_x_idx_0</a>;</td></tr>
<tr name="696" id="696">
<td><a id="l696" class='ln'>696</a></td><td>            <span class="kw">if</span> (0 <a id="696c19" class="tk">&lt;=</a> <a id="696c22" class="tk">breathrate_B</a>.<a id="696c35" class="tk">nQuartets</a> <a id="696c45" class="tk">-</a> 1)</td></tr>
<tr name="697" id="697">
<td><a id="l697" class='ln'>697</a></td><td>            <span class="br">{</span></td></tr>
<tr name="698" id="698">
<td><a id="l698" class='ln'>698</a></td><td>                <a id="698c17" class="tk">memset</a>(<a id="698c24" class="tk">&amp;</a><a id="698c25" class="tk">breathrate_B</a>.<a id="698c38" class="tk">iwork_data</a>[0], 0, (<a id="698c57" class="tk">uint32_T</a>)</td></tr>
<tr name="699" id="699">
<td><a id="l699" class='ln'>699</a></td><td>                       <a id="699c24" class="tk">breathrate_B</a>.<a id="699c37" class="tk">nQuartets</a> <a id="699c47" class="tk">*</a> <span class="kw">sizeof</span>(<a id="699c56" class="tk">int32_T</a>));</td></tr>
<tr name="700" id="700">
<td><a id="l700" class='ln'>700</a></td><td>            <span class="br">}</span></td></tr>
<tr name="701" id="701">
<td><a id="l701" class='ln'>701</a></td><td></td></tr>
<tr name="702" id="702">
<td><a id="l702" class='ln'>702</a></td><td>            <a id="702c13" class="tk">b_x_idx_0</a> = (<a id="702c26" class="tk">uint8_T</a>)<a id="702c34" class="tk">*</a><a id="702c35" class="tk">x_size</a>;</td></tr>
<tr name="703" id="703">
<td><a id="l703" class='ln'>703</a></td><td>            <a id="703c13" class="tk">breathrate_B</a>.<a id="703c26" class="tk">nQuartets</a> = (<a id="703c39" class="tk">int32_T</a>)<a id="703c47" class="tk">b_x_idx_0</a>;</td></tr>
<tr name="704" id="704">
<td><a id="l704" class='ln'>704</a></td><td>            <span class="kw">if</span> (0 <a id="704c19" class="tk">&lt;=</a> <a id="704c22" class="tk">breathrate_B</a>.<a id="704c35" class="tk">nQuartets</a> <a id="704c45" class="tk">-</a> 1)</td></tr>
<tr name="705" id="705">
<td><a id="l705" class='ln'>705</a></td><td>            <span class="br">{</span></td></tr>
<tr name="706" id="706">
<td><a id="l706" class='ln'>706</a></td><td>                <a id="706c17" class="tk">memset</a>(<a id="706c24" class="tk">&amp;</a><a id="706c25" class="tk">breathrate_B</a>.<a id="706c38" class="tk">xwork_data</a>[0], 0, (<a id="706c57" class="tk">uint32_T</a>)</td></tr>
<tr name="707" id="707">
<td><a id="l707" class='ln'>707</a></td><td>                       <a id="707c24" class="tk">breathrate_B</a>.<a id="707c37" class="tk">nQuartets</a> <a id="707c47" class="tk">*</a> <span class="kw">sizeof</span>(<a id="707c56" class="tk">int32_T</a>));</td></tr>
<tr name="708" id="708">
<td><a id="l708" class='ln'>708</a></td><td>            <span class="br">}</span></td></tr>
<tr name="709" id="709">
<td><a id="l709" class='ln'>709</a></td><td></td></tr>
<tr name="710" id="710">
<td><a id="l710" class='ln'>710</a></td><td>            <a id="710c13" class="tk">breathrate_merge_block</a>(<a id="710c36" class="tk">idx_data</a>, <a id="710c46" class="tk">breathrate_B</a>.<a id="710c59" class="tk">c_x_data</a>, <a id="710c69" class="tk">*</a><a id="710c70" class="tk">x_size</a>,</td></tr>
<tr name="711" id="711">
<td><a id="l711" class='ln'>711</a></td><td>                                   <a id="711c36" class="tk">breathrate_B</a>.<a id="711c49" class="tk">iwork_data</a>,</td></tr>
<tr name="712" id="712">
<td><a id="l712" class='ln'>712</a></td><td>                                   <a id="712c36" class="tk">breathrate_B</a>.<a id="712c49" class="tk">xwork_data</a>);</td></tr>
<tr name="713" id="713">
<td><a id="l713" class='ln'>713</a></td><td>        <span class="br">}</span></td></tr>
<tr name="714" id="714">
<td><a id="l714" class='ln'>714</a></td><td></td></tr>
<tr name="715" id="715">
<td><a id="l715" class='ln'>715</a></td><td>        <a id="715c9" class="tk">*</a><a id="715c10" class="tk">x_size</a> = <a id="715c19" class="tk">c_x_size</a>;</td></tr>
<tr name="716" id="716">
<td><a id="l716" class='ln'>716</a></td><td>        <a id="716c9" class="tk">breathrate_B</a>.<a id="716c22" class="tk">nQuartets</a> = <a id="716c34" class="tk">c_x_size</a>;</td></tr>
<tr name="717" id="717">
<td><a id="l717" class='ln'>717</a></td><td>        <span class="kw">if</span> (0 <a id="717c15" class="tk">&lt;=</a> <a id="717c18" class="tk">breathrate_B</a>.<a id="717c31" class="tk">nQuartets</a> <a id="717c41" class="tk">-</a> 1)</td></tr>
<tr name="718" id="718">
<td><a id="l718" class='ln'>718</a></td><td>        <span class="br">{</span></td></tr>
<tr name="719" id="719">
<td><a id="l719" class='ln'>719</a></td><td>            <a id="719c13" class="tk">memcpy</a>(<a id="719c20" class="tk">&amp;</a><a id="719c21" class="tk">x_data</a>[0], <a id="719c32" class="tk">&amp;</a><a id="719c33" class="tk">breathrate_B</a>.<a id="719c46" class="tk">c_x_data</a>[0], (<a id="719c60" class="tk">uint32_T</a>)</td></tr>
<tr name="720" id="720">
<td><a id="l720" class='ln'>720</a></td><td>                   <a id="720c20" class="tk">breathrate_B</a>.<a id="720c33" class="tk">nQuartets</a> <a id="720c43" class="tk">*</a> <span class="kw">sizeof</span>(<a id="720c52" class="tk">int32_T</a>));</td></tr>
<tr name="721" id="721">
<td><a id="l721" class='ln'>721</a></td><td>        <span class="br">}</span></td></tr>
<tr name="722" id="722">
<td><a id="l722" class='ln'>722</a></td><td>    <span class="br">}</span></td></tr>
<tr name="723" id="723">
<td><a id="l723" class='ln'>723</a></td><td><span class="br">}</span></td></tr>
<tr name="724" id="724">
<td><a id="l724" class='ln'>724</a></td><td></td></tr>
<tr name="725" id="725">
<td><a id="l725" class='ln'>725</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="725c13" class="tk">breathrate_sort</a>(<a id="725c29" class="tk">int32_T</a> <a id="725c37" class="tk">x_data</a>[], <a id="725c47" class="tk">int32_T</a> <a id="725c55" class="tk">*</a><a id="725c56" class="tk">x_size</a>)</td></tr>
<tr name="726" id="726">
<td><a id="l726" class='ln'>726</a></td><td><span class="br">{</span></td></tr>
<tr name="727" id="727">
<td><a id="l727" class='ln'>727</a></td><td>    <a id="727c5" class="tk">breathrate_B</a>.<a id="727c18" class="tk">dim</a> = 2;</td></tr>
<tr name="728" id="728">
<td><a id="l728" class='ln'>728</a></td><td>    <span class="kw">if</span> (<a id="728c9" class="tk">*</a><a id="728c10" class="tk">x_size</a> <a id="728c17" class="tk">!=</a> 1)</td></tr>
<tr name="729" id="729">
<td><a id="l729" class='ln'>729</a></td><td>    <span class="br">{</span></td></tr>
<tr name="730" id="730">
<td><a id="l730" class='ln'>730</a></td><td>        <a id="730c9" class="tk">breathrate_B</a>.<a id="730c22" class="tk">dim</a> = 1;</td></tr>
<tr name="731" id="731">
<td><a id="l731" class='ln'>731</a></td><td>    <span class="br">}</span></td></tr>
<tr name="732" id="732">
<td><a id="l732" class='ln'>732</a></td><td></td></tr>
<tr name="733" id="733">
<td><a id="l733" class='ln'>733</a></td><td>    <span class="kw">if</span> (<a id="733c9" class="tk">breathrate_B</a>.<a id="733c22" class="tk">dim</a> <a id="733c26" class="tk">&lt;=</a> 1)</td></tr>
<tr name="734" id="734">
<td><a id="l734" class='ln'>734</a></td><td>    <span class="br">{</span></td></tr>
<tr name="735" id="735">
<td><a id="l735" class='ln'>735</a></td><td>        <a id="735c9" class="tk">breathrate_B</a>.<a id="735c22" class="tk">b</a> = <a id="735c26" class="tk">*</a><a id="735c27" class="tk">x_size</a> <a id="735c34" class="tk">-</a> 1;</td></tr>
<tr name="736" id="736">
<td><a id="l736" class='ln'>736</a></td><td>    <span class="br">}</span></td></tr>
<tr name="737" id="737">
<td><a id="l737" class='ln'>737</a></td><td>    <span class="kw">else</span></td></tr>
<tr name="738" id="738">
<td><a id="l738" class='ln'>738</a></td><td>    <span class="br">{</span></td></tr>
<tr name="739" id="739">
<td><a id="l739" class='ln'>739</a></td><td>        <a id="739c9" class="tk">breathrate_B</a>.<a id="739c22" class="tk">b</a> = 0;</td></tr>
<tr name="740" id="740">
<td><a id="l740" class='ln'>740</a></td><td>    <span class="br">}</span></td></tr>
<tr name="741" id="741">
<td><a id="l741" class='ln'>741</a></td><td></td></tr>
<tr name="742" id="742">
<td><a id="l742" class='ln'>742</a></td><td>    <a id="742c5" class="tk">breathrate_B</a>.<a id="742c18" class="tk">vwork_size</a> = (<a id="742c32" class="tk">int32_T</a>)(<a id="742c41" class="tk">uint8_T</a>)(<a id="742c50" class="tk">int32_T</a>)(<a id="742c59" class="tk">breathrate_B</a>.<a id="742c72" class="tk">b</a> <a id="742c74" class="tk">+</a> 1);</td></tr>
<tr name="743" id="743">
<td><a id="l743" class='ln'>743</a></td><td>    <a id="743c5" class="tk">breathrate_B</a>.<a id="743c18" class="tk">vstride</a> = 1;</td></tr>
<tr name="744" id="744">
<td><a id="l744" class='ln'>744</a></td><td>    <a id="744c5" class="tk">breathrate_B</a>.<a id="744c18" class="tk">c_k</a> = 0;</td></tr>
<tr name="745" id="745">
<td><a id="l745" class='ln'>745</a></td><td>    <span class="kw">while</span> (<a id="745c12" class="tk">breathrate_B</a>.<a id="745c25" class="tk">c_k</a> <a id="745c29" class="tk">&lt;=</a> <a id="745c32" class="tk">breathrate_B</a>.<a id="745c45" class="tk">dim</a> <a id="745c49" class="tk">-</a> 2)</td></tr>
<tr name="746" id="746">
<td><a id="l746" class='ln'>746</a></td><td>    <span class="br">{</span></td></tr>
<tr name="747" id="747">
<td><a id="l747" class='ln'>747</a></td><td>        <a id="747c9" class="tk">breathrate_B</a>.<a id="747c22" class="tk">vstride</a> <a id="747c30" class="tk">*=</a> <a id="747c33" class="tk">*</a><a id="747c34" class="tk">x_size</a>;</td></tr>
<tr name="748" id="748">
<td><a id="l748" class='ln'>748</a></td><td>        <a id="748c9" class="tk">breathrate_B</a>.<a id="748c22" class="tk">c_k</a> = 1;</td></tr>
<tr name="749" id="749">
<td><a id="l749" class='ln'>749</a></td><td>    <span class="br">}</span></td></tr>
<tr name="750" id="750">
<td><a id="l750" class='ln'>750</a></td><td></td></tr>
<tr name="751" id="751">
<td><a id="l751" class='ln'>751</a></td><td>    <a id="751c5" class="tk">breathrate_B</a>.<a id="751c18" class="tk">dim</a> = 0;</td></tr>
<tr name="752" id="752">
<td><a id="l752" class='ln'>752</a></td><td>    <span class="kw">while</span> (<a id="752c12" class="tk">breathrate_B</a>.<a id="752c25" class="tk">dim</a> <a id="752c29" class="tk">&lt;=</a> <a id="752c32" class="tk">breathrate_B</a>.<a id="752c45" class="tk">vstride</a> <a id="752c53" class="tk">-</a> 1)</td></tr>
<tr name="753" id="753">
<td><a id="l753" class='ln'>753</a></td><td>    <span class="br">{</span></td></tr>
<tr name="754" id="754">
<td><a id="l754" class='ln'>754</a></td><td>        <a id="754c9" class="tk">breathrate_B</a>.<a id="754c22" class="tk">c_k</a> = 0;</td></tr>
<tr name="755" id="755">
<td><a id="l755" class='ln'>755</a></td><td>        <span class="kw">while</span> (<a id="755c16" class="tk">breathrate_B</a>.<a id="755c29" class="tk">c_k</a> <a id="755c33" class="tk">&lt;=</a> <a id="755c36" class="tk">breathrate_B</a>.<a id="755c49" class="tk">b</a>)</td></tr>
<tr name="756" id="756">
<td><a id="l756" class='ln'>756</a></td><td>        <span class="br">{</span></td></tr>
<tr name="757" id="757">
<td><a id="l757" class='ln'>757</a></td><td>            <a id="757c13" class="tk">breathrate_B</a>.<a id="757c26" class="tk">vwork_data_c</a>[<a id="757c39" class="tk">breathrate_B</a>.<a id="757c52" class="tk">c_k</a>] =</td></tr>
<tr name="758" id="758">
<td><a id="l758" class='ln'>758</a></td><td>                <a id="758c17" class="tk">x_data</a>[<a id="758c24" class="tk">breathrate_B</a>.<a id="758c37" class="tk">c_k</a> <a id="758c41" class="tk">*</a> <a id="758c43" class="tk">breathrate_B</a>.<a id="758c56" class="tk">vstride</a> <a id="758c64" class="tk">+</a></td></tr>
<tr name="759" id="759">
<td><a id="l759" class='ln'>759</a></td><td>                <a id="759c17" class="tk">breathrate_B</a>.<a id="759c30" class="tk">dim</a>];</td></tr>
<tr name="760" id="760">
<td><a id="l760" class='ln'>760</a></td><td>            <a id="760c13" class="tk">breathrate_B</a>.<a id="760c26" class="tk">c_k</a><a id="760c29" class="tk">++</a>;</td></tr>
<tr name="761" id="761">
<td><a id="l761" class='ln'>761</a></td><td>        <span class="br">}</span></td></tr>
<tr name="762" id="762">
<td><a id="l762" class='ln'>762</a></td><td></td></tr>
<tr name="763" id="763">
<td><a id="l763" class='ln'>763</a></td><td>        <a id="763c9" class="tk">breathrate_sortIdx_c</a>(<a id="763c30" class="tk">breathrate_B</a>.<a id="763c43" class="tk">vwork_data_c</a>, <a id="763c57" class="tk">&amp;</a><a id="763c58" class="tk">breathrate_B</a>.<a id="763c71" class="tk">vwork_size</a>,</td></tr>
<tr name="764" id="764">
<td><a id="l764" class='ln'>764</a></td><td>                             <a id="764c30" class="tk">breathrate_B</a>.<a id="764c43" class="tk">vwork_data</a>.<a id="764c54" class="tk">data</a>,</td></tr>
<tr name="765" id="765">
<td><a id="l765" class='ln'>765</a></td><td>                             <a id="765c30" class="tk">&amp;</a><a id="765c31" class="tk">breathrate_B</a>.<a id="765c44" class="tk">vwork_data</a>.<a id="765c55" class="tk">size</a>);</td></tr>
<tr name="766" id="766">
<td><a id="l766" class='ln'>766</a></td><td>        <a id="766c9" class="tk">breathrate_B</a>.<a id="766c22" class="tk">c_k</a> = 0;</td></tr>
<tr name="767" id="767">
<td><a id="l767" class='ln'>767</a></td><td>        <span class="kw">while</span> (<a id="767c16" class="tk">breathrate_B</a>.<a id="767c29" class="tk">c_k</a> <a id="767c33" class="tk">&lt;=</a> <a id="767c36" class="tk">breathrate_B</a>.<a id="767c49" class="tk">b</a>)</td></tr>
<tr name="768" id="768">
<td><a id="l768" class='ln'>768</a></td><td>        <span class="br">{</span></td></tr>
<tr name="769" id="769">
<td><a id="l769" class='ln'>769</a></td><td>            <a id="769c13" class="tk">x_data</a>[<a id="769c20" class="tk">breathrate_B</a>.<a id="769c33" class="tk">dim</a> <a id="769c37" class="tk">+</a> <a id="769c39" class="tk">breathrate_B</a>.<a id="769c52" class="tk">c_k</a> <a id="769c56" class="tk">*</a> <a id="769c58" class="tk">breathrate_B</a>.<a id="769c71" class="tk">vstride</a>] =</td></tr>
<tr name="770" id="770">
<td><a id="l770" class='ln'>770</a></td><td>                <a id="770c17" class="tk">breathrate_B</a>.<a id="770c30" class="tk">vwork_data_c</a>[<a id="770c43" class="tk">breathrate_B</a>.<a id="770c56" class="tk">c_k</a>];</td></tr>
<tr name="771" id="771">
<td><a id="l771" class='ln'>771</a></td><td>            <a id="771c13" class="tk">breathrate_B</a>.<a id="771c26" class="tk">c_k</a><a id="771c29" class="tk">++</a>;</td></tr>
<tr name="772" id="772">
<td><a id="l772" class='ln'>772</a></td><td>        <span class="br">}</span></td></tr>
<tr name="773" id="773">
<td><a id="l773" class='ln'>773</a></td><td></td></tr>
<tr name="774" id="774">
<td><a id="l774" class='ln'>774</a></td><td>        <a id="774c9" class="tk">breathrate_B</a>.<a id="774c22" class="tk">dim</a><a id="774c25" class="tk">++</a>;</td></tr>
<tr name="775" id="775">
<td><a id="l775" class='ln'>775</a></td><td>    <span class="br">}</span></td></tr>
<tr name="776" id="776">
<td><a id="l776" class='ln'>776</a></td><td><span class="br">}</span></td></tr>
<tr name="777" id="777">
<td><a id="l777" class='ln'>777</a></td><td></td></tr>
<tr name="778" id="778">
<td><a id="l778" class='ln'>778</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="778c13" class="tk">findPeaksSeparatedByMoreThanMin</a>(<span class="kw">const</span> <a id="778c51" class="tk">real32_T</a> <a id="778c60" class="tk">y</a>[149], <span class="kw">const</span> <a id="778c74" class="tk">int32_T</a></td></tr>
<tr name="779" id="779">
<td><a id="l779" class='ln'>779</a></td><td>    <a id="779c5" class="tk">iPk_data</a>[], <span class="kw">const</span> <a id="779c23" class="tk">int32_T</a> <a id="779c31" class="tk">*</a><a id="779c32" class="tk">iPk_size</a>, <a id="779c42" class="tk">int32_T</a> <a id="779c50" class="tk">idx_data</a>[], <a id="779c62" class="tk">int32_T</a> <a id="779c70" class="tk">*</a><a id="779c71" class="tk">idx_size</a>)</td></tr>
<tr name="780" id="780">
<td><a id="l780" class='ln'>780</a></td><td><span class="br">{</span></td></tr>
<tr name="781" id="781">
<td><a id="l781" class='ln'>781</a></td><td>    <a id="781c5" class="tk">uint8_T</a> <a id="781c13" class="tk">b_locs_temp_idx_0</a>;</td></tr>
<tr name="782" id="782">
<td><a id="l782" class='ln'>782</a></td><td>    <span class="kw">if</span> (<a id="782c9" class="tk">*</a><a id="782c10" class="tk">iPk_size</a> <a id="782c19" class="tk">==</a> 0)</td></tr>
<tr name="783" id="783">
<td><a id="l783" class='ln'>783</a></td><td>    <span class="br">{</span></td></tr>
<tr name="784" id="784">
<td><a id="l784" class='ln'>784</a></td><td>        <a id="784c9" class="tk">*</a><a id="784c10" class="tk">idx_size</a> = 0;</td></tr>
<tr name="785" id="785">
<td><a id="l785" class='ln'>785</a></td><td>    <span class="br">}</span></td></tr>
<tr name="786" id="786">
<td><a id="l786" class='ln'>786</a></td><td>    <span class="kw">else</span></td></tr>
<tr name="787" id="787">
<td><a id="l787" class='ln'>787</a></td><td>    <span class="br">{</span></td></tr>
<tr name="788" id="788">
<td><a id="l788" class='ln'>788</a></td><td>        <a id="788c9" class="tk">breathrate_B</a>.<a id="788c22" class="tk">y_size</a> = <a id="788c31" class="tk">*</a><a id="788c32" class="tk">iPk_size</a>;</td></tr>
<tr name="789" id="789">
<td><a id="l789" class='ln'>789</a></td><td>        <a id="789c9" class="tk">breathrate_B</a>.<a id="789c22" class="tk">loop_ub_b</a> = <a id="789c34" class="tk">*</a><a id="789c35" class="tk">iPk_size</a>;</td></tr>
<tr name="790" id="790">
<td><a id="l790" class='ln'>790</a></td><td>        <span class="kw">for</span> (<a id="790c14" class="tk">breathrate_B</a>.<a id="790c27" class="tk">trueCount</a> = 0; <a id="790c42" class="tk">breathrate_B</a>.<a id="790c55" class="tk">trueCount</a> <a id="790c65" class="tk">&lt;</a></td></tr>
<tr name="791" id="791">
<td><a id="l791" class='ln'>791</a></td><td>                <a id="791c17" class="tk">breathrate_B</a>.<a id="791c30" class="tk">loop_ub_b</a>; <a id="791c41" class="tk">breathrate_B</a>.<a id="791c54" class="tk">trueCount</a><a id="791c63" class="tk">++</a>)</td></tr>
<tr name="792" id="792">
<td><a id="l792" class='ln'>792</a></td><td>        <span class="br">{</span></td></tr>
<tr name="793" id="793">
<td><a id="l793" class='ln'>793</a></td><td>            <a id="793c13" class="tk">breathrate_B</a>.<a id="793c26" class="tk">y_data</a>[<a id="793c33" class="tk">breathrate_B</a>.<a id="793c46" class="tk">trueCount</a>] =</td></tr>
<tr name="794" id="794">
<td><a id="l794" class='ln'>794</a></td><td>                <a id="794c17" class="tk">y</a>[<a id="794c19" class="tk">iPk_data</a>[<a id="794c28" class="tk">breathrate_B</a>.<a id="794c41" class="tk">trueCount</a>] <a id="794c52" class="tk">-</a> 1];</td></tr>
<tr name="795" id="795">
<td><a id="l795" class='ln'>795</a></td><td>        <span class="br">}</span></td></tr>
<tr name="796" id="796">
<td><a id="l796" class='ln'>796</a></td><td></td></tr>
<tr name="797" id="797">
<td><a id="l797" class='ln'>797</a></td><td>        <a id="797c9" class="tk">breathrate_sortIdx</a>(<a id="797c28" class="tk">breathrate_B</a>.<a id="797c41" class="tk">y_data</a>, <a id="797c49" class="tk">&amp;</a><a id="797c50" class="tk">breathrate_B</a>.<a id="797c63" class="tk">y_size</a>,</td></tr>
<tr name="798" id="798">
<td><a id="l798" class='ln'>798</a></td><td>                           <a id="798c28" class="tk">breathrate_B</a>.<a id="798c41" class="tk">sortIdx_data</a>, <a id="798c55" class="tk">&amp;</a><a id="798c56" class="tk">breathrate_B</a>.<a id="798c69" class="tk">sortIdx_size</a>);</td></tr>
<tr name="799" id="799">
<td><a id="l799" class='ln'>799</a></td><td>        <a id="799c9" class="tk">breathrate_B</a>.<a id="799c22" class="tk">loop_ub_b</a> = <a id="799c34" class="tk">breathrate_B</a>.<a id="799c47" class="tk">sortIdx_size</a>;</td></tr>
<tr name="800" id="800">
<td><a id="l800" class='ln'>800</a></td><td>        <span class="kw">for</span> (<a id="800c14" class="tk">breathrate_B</a>.<a id="800c27" class="tk">trueCount</a> = 0; <a id="800c42" class="tk">breathrate_B</a>.<a id="800c55" class="tk">trueCount</a> <a id="800c65" class="tk">&lt;</a></td></tr>
<tr name="801" id="801">
<td><a id="l801" class='ln'>801</a></td><td>                <a id="801c17" class="tk">breathrate_B</a>.<a id="801c30" class="tk">loop_ub_b</a>; <a id="801c41" class="tk">breathrate_B</a>.<a id="801c54" class="tk">trueCount</a><a id="801c63" class="tk">++</a>)</td></tr>
<tr name="802" id="802">
<td><a id="l802" class='ln'>802</a></td><td>        <span class="br">{</span></td></tr>
<tr name="803" id="803">
<td><a id="l803" class='ln'>803</a></td><td>            <a id="803c13" class="tk">breathrate_B</a>.<a id="803c26" class="tk">locs_temp_data</a>[<a id="803c41" class="tk">breathrate_B</a>.<a id="803c54" class="tk">trueCount</a>] = (<a id="803c68" class="tk">uint8_T</a>)</td></tr>
<tr name="804" id="804">
<td><a id="l804" class='ln'>804</a></td><td>                ((<a id="804c19" class="tk">uint32_T</a>)(<a id="804c29" class="tk">uint8_T</a>)(<a id="804c38" class="tk">int32_T</a>)</td></tr>
<tr name="805" id="805">
<td><a id="l805" class='ln'>805</a></td><td>                 (<a id="805c19" class="tk">iPk_data</a>[<a id="805c28" class="tk">breathrate_B</a>.<a id="805c41" class="tk">sortIdx_data</a>[<a id="805c54" class="tk">breathrate_B</a>.<a id="805c67" class="tk">trueCount</a>] <a id="805c78" class="tk">-</a> 1]</td></tr>
<tr name="806" id="806">
<td><a id="l806" class='ln'>806</a></td><td>                  <a id="806c19" class="tk">-</a> 1) <a id="806c24" class="tk">+</a> 1U);</td></tr>
<tr name="807" id="807">
<td><a id="l807" class='ln'>807</a></td><td>        <span class="br">}</span></td></tr>
<tr name="808" id="808">
<td><a id="l808" class='ln'>808</a></td><td></td></tr>
<tr name="809" id="809">
<td><a id="l809" class='ln'>809</a></td><td>        <a id="809c9" class="tk">b_locs_temp_idx_0</a> = (<a id="809c30" class="tk">uint8_T</a>)<a id="809c38" class="tk">breathrate_B</a>.<a id="809c51" class="tk">sortIdx_size</a>;</td></tr>
<tr name="810" id="810">
<td><a id="l810" class='ln'>810</a></td><td>        <a id="810c9" class="tk">breathrate_B</a>.<a id="810c22" class="tk">idelete_size_idx_0</a> = (<a id="810c44" class="tk">int32_T</a>)<a id="810c52" class="tk">b_locs_temp_idx_0</a>;</td></tr>
<tr name="811" id="811">
<td><a id="l811" class='ln'>811</a></td><td>        <a id="811c9" class="tk">breathrate_B</a>.<a id="811c22" class="tk">loop_ub_b</a> = (<a id="811c35" class="tk">int32_T</a>)<a id="811c43" class="tk">b_locs_temp_idx_0</a>;</td></tr>
<tr name="812" id="812">
<td><a id="l812" class='ln'>812</a></td><td>        <span class="kw">if</span> (0 <a id="812c15" class="tk">&lt;=</a> <a id="812c18" class="tk">breathrate_B</a>.<a id="812c31" class="tk">loop_ub_b</a> <a id="812c41" class="tk">-</a> 1)</td></tr>
<tr name="813" id="813">
<td><a id="l813" class='ln'>813</a></td><td>        <span class="br">{</span></td></tr>
<tr name="814" id="814">
<td><a id="l814" class='ln'>814</a></td><td>            <a id="814c13" class="tk">memset</a>(<a id="814c20" class="tk">&amp;</a><a id="814c21" class="tk">breathrate_B</a>.<a id="814c34" class="tk">idelete_data</a>[0], 0, (<a id="814c55" class="tk">uint32_T</a>)</td></tr>
<tr name="815" id="815">
<td><a id="l815" class='ln'>815</a></td><td>                   <a id="815c20" class="tk">breathrate_B</a>.<a id="815c33" class="tk">loop_ub_b</a> <a id="815c43" class="tk">*</a> <span class="kw">sizeof</span>(<a id="815c52" class="tk">boolean_T</a>));</td></tr>
<tr name="816" id="816">
<td><a id="l816" class='ln'>816</a></td><td>        <span class="br">}</span></td></tr>
<tr name="817" id="817">
<td><a id="l817" class='ln'>817</a></td><td></td></tr>
<tr name="818" id="818">
<td><a id="l818" class='ln'>818</a></td><td>        <a id="818c9" class="tk">breathrate_B</a>.<a id="818c22" class="tk">loop_ub_b</a> = 0;</td></tr>
<tr name="819" id="819">
<td><a id="l819" class='ln'>819</a></td><td>        <span class="kw">while</span> (<a id="819c16" class="tk">breathrate_B</a>.<a id="819c29" class="tk">loop_ub_b</a> <a id="819c39" class="tk">&lt;=</a> <a id="819c42" class="tk">breathrate_B</a>.<a id="819c55" class="tk">sortIdx_size</a> <a id="819c68" class="tk">-</a> 1)</td></tr>
<tr name="820" id="820">
<td><a id="l820" class='ln'>820</a></td><td>        <span class="br">{</span></td></tr>
<tr name="821" id="821">
<td><a id="l821" class='ln'>821</a></td><td>            <span class="kw">if</span> (<a id="821c17" class="tk">!</a><a id="821c18" class="tk">breathrate_B</a>.<a id="821c31" class="tk">idelete_data</a>[<a id="821c44" class="tk">breathrate_B</a>.<a id="821c57" class="tk">loop_ub_b</a>])</td></tr>
<tr name="822" id="822">
<td><a id="l822" class='ln'>822</a></td><td>            <span class="br">{</span></td></tr>
<tr name="823" id="823">
<td><a id="l823" class='ln'>823</a></td><td>                <a id="823c17" class="tk">breathrate_B</a>.<a id="823c30" class="tk">trueCount</a> = (<a id="823c43" class="tk">int32_T</a>)(<a id="823c52" class="tk">uint8_T</a>)((<a id="823c62" class="tk">uint32_T</a>)(<a id="823c72" class="tk">uint8_T</a>)</td></tr>
<tr name="824" id="824">
<td><a id="l824" class='ln'>824</a></td><td>                    (<a id="824c22" class="tk">int32_T</a>)</td></tr>
<tr name="825" id="825">
<td><a id="l825" class='ln'>825</a></td><td>                    (<a id="825c22" class="tk">iPk_data</a>[<a id="825c31" class="tk">breathrate_B</a>.<a id="825c44" class="tk">sortIdx_data</a>[<a id="825c57" class="tk">breathrate_B</a>.<a id="825c70" class="tk">loop_ub_b</a>]</td></tr>
<tr name="826" id="826">
<td><a id="l826" class='ln'>826</a></td><td>                     <a id="826c22" class="tk">-</a> 1] <a id="826c27" class="tk">-</a> 1) <a id="826c32" class="tk">+</a> 1U);</td></tr>
<tr name="827" id="827">
<td><a id="l827" class='ln'>827</a></td><td>                <span class="kw">for</span> (<a id="827c22" class="tk">breathrate_B</a>.<a id="827c35" class="tk">b_i</a> = 0; <a id="827c44" class="tk">breathrate_B</a>.<a id="827c57" class="tk">b_i</a> <a id="827c61" class="tk">&lt;</a></td></tr>
<tr name="828" id="828">
<td><a id="l828" class='ln'>828</a></td><td>                        <a id="828c25" class="tk">breathrate_B</a>.<a id="828c38" class="tk">idelete_size_idx_0</a>; <a id="828c58" class="tk">breathrate_B</a>.<a id="828c71" class="tk">b_i</a><a id="828c74" class="tk">++</a>)</td></tr>
<tr name="829" id="829">
<td><a id="l829" class='ln'>829</a></td><td>                <span class="br">{</span></td></tr>
<tr name="830" id="830">
<td><a id="l830" class='ln'>830</a></td><td>                    <a id="830c21" class="tk">breathrate_B</a>.<a id="830c34" class="tk">idelete_data</a>[<a id="830c47" class="tk">breathrate_B</a>.<a id="830c60" class="tk">b_i</a>] =</td></tr>
<tr name="831" id="831">
<td><a id="l831" class='ln'>831</a></td><td>                        (<a id="831c26" class="tk">breathrate_B</a>.<a id="831c39" class="tk">idelete_data</a>[<a id="831c52" class="tk">breathrate_B</a>.<a id="831c65" class="tk">b_i</a>] <a id="831c70" class="tk">||</a></td></tr>
<tr name="832" id="832">
<td><a id="l832" class='ln'>832</a></td><td>                         (((<a id="832c29" class="tk">int32_T</a>)<a id="832c37" class="tk">breathrate_B</a>.<a id="832c50" class="tk">locs_temp_data</a>[<a id="832c65" class="tk">breathrate_B</a>.<a id="832c78" class="tk">b_i</a>]</td></tr>
<tr name="833" id="833">
<td><a id="l833" class='ln'>833</a></td><td>                           <a id="833c28" class="tk">&gt;=</a> <a id="833c31" class="tk">breathrate_B</a>.<a id="833c44" class="tk">trueCount</a> <a id="833c54" class="tk">-</a> 20) <a id="833c60" class="tk">&amp;&amp;</a> ((<a id="833c65" class="tk">int32_T</a>)</td></tr>
<tr name="834" id="834">
<td><a id="l834" class='ln'>834</a></td><td>                           <a id="834c28" class="tk">breathrate_B</a>.<a id="834c41" class="tk">locs_temp_data</a>[<a id="834c56" class="tk">breathrate_B</a>.<a id="834c69" class="tk">b_i</a>] <a id="834c74" class="tk">&lt;=</a></td></tr>
<tr name="835" id="835">
<td><a id="l835" class='ln'>835</a></td><td>                           <a id="835c28" class="tk">breathrate_B</a>.<a id="835c41" class="tk">trueCount</a> <a id="835c51" class="tk">+</a> 20)));</td></tr>
<tr name="836" id="836">
<td><a id="l836" class='ln'>836</a></td><td>                <span class="br">}</span></td></tr>
<tr name="837" id="837">
<td><a id="l837" class='ln'>837</a></td><td></td></tr>
<tr name="838" id="838">
<td><a id="l838" class='ln'>838</a></td><td>                <a id="838c17" class="tk">breathrate_B</a>.<a id="838c30" class="tk">idelete_data</a>[<a id="838c43" class="tk">breathrate_B</a>.<a id="838c56" class="tk">loop_ub_b</a>] = false;</td></tr>
<tr name="839" id="839">
<td><a id="l839" class='ln'>839</a></td><td>            <span class="br">}</span></td></tr>
<tr name="840" id="840">
<td><a id="l840" class='ln'>840</a></td><td></td></tr>
<tr name="841" id="841">
<td><a id="l841" class='ln'>841</a></td><td>            <a id="841c13" class="tk">breathrate_B</a>.<a id="841c26" class="tk">loop_ub_b</a><a id="841c35" class="tk">++</a>;</td></tr>
<tr name="842" id="842">
<td><a id="l842" class='ln'>842</a></td><td>        <span class="br">}</span></td></tr>
<tr name="843" id="843">
<td><a id="l843" class='ln'>843</a></td><td></td></tr>
<tr name="844" id="844">
<td><a id="l844" class='ln'>844</a></td><td>        <a id="844c9" class="tk">breathrate_B</a>.<a id="844c22" class="tk">loop_ub_b</a> = (<a id="844c35" class="tk">int32_T</a>)<a id="844c43" class="tk">b_locs_temp_idx_0</a> <a id="844c61" class="tk">-</a> 1;</td></tr>
<tr name="845" id="845">
<td><a id="l845" class='ln'>845</a></td><td>        <a id="845c9" class="tk">breathrate_B</a>.<a id="845c22" class="tk">trueCount</a> = 0;</td></tr>
<tr name="846" id="846">
<td><a id="l846" class='ln'>846</a></td><td>        <a id="846c9" class="tk">breathrate_B</a>.<a id="846c22" class="tk">b_i</a> = 0;</td></tr>
<tr name="847" id="847">
<td><a id="l847" class='ln'>847</a></td><td>        <span class="kw">while</span> (<a id="847c16" class="tk">breathrate_B</a>.<a id="847c29" class="tk">b_i</a> <a id="847c33" class="tk">&lt;=</a> <a id="847c36" class="tk">breathrate_B</a>.<a id="847c49" class="tk">loop_ub_b</a>)</td></tr>
<tr name="848" id="848">
<td><a id="l848" class='ln'>848</a></td><td>        <span class="br">{</span></td></tr>
<tr name="849" id="849">
<td><a id="l849" class='ln'>849</a></td><td>            <span class="kw">if</span> (<a id="849c17" class="tk">!</a><a id="849c18" class="tk">breathrate_B</a>.<a id="849c31" class="tk">idelete_data</a>[<a id="849c44" class="tk">breathrate_B</a>.<a id="849c57" class="tk">b_i</a>])</td></tr>
<tr name="850" id="850">
<td><a id="l850" class='ln'>850</a></td><td>            <span class="br">{</span></td></tr>
<tr name="851" id="851">
<td><a id="l851" class='ln'>851</a></td><td>                <a id="851c17" class="tk">breathrate_B</a>.<a id="851c30" class="tk">trueCount</a><a id="851c39" class="tk">++</a>;</td></tr>
<tr name="852" id="852">
<td><a id="l852" class='ln'>852</a></td><td>            <span class="br">}</span></td></tr>
<tr name="853" id="853">
<td><a id="l853" class='ln'>853</a></td><td></td></tr>
<tr name="854" id="854">
<td><a id="l854" class='ln'>854</a></td><td>            <a id="854c13" class="tk">breathrate_B</a>.<a id="854c26" class="tk">b_i</a><a id="854c29" class="tk">++</a>;</td></tr>
<tr name="855" id="855">
<td><a id="l855" class='ln'>855</a></td><td>        <span class="br">}</span></td></tr>
<tr name="856" id="856">
<td><a id="l856" class='ln'>856</a></td><td></td></tr>
<tr name="857" id="857">
<td><a id="l857" class='ln'>857</a></td><td>        <a id="857c9" class="tk">breathrate_B</a>.<a id="857c22" class="tk">idelete_size_idx_0</a> = <a id="857c43" class="tk">breathrate_B</a>.<a id="857c56" class="tk">trueCount</a>;</td></tr>
<tr name="858" id="858">
<td><a id="l858" class='ln'>858</a></td><td>        <a id="858c9" class="tk">breathrate_B</a>.<a id="858c22" class="tk">trueCount</a> = 0;</td></tr>
<tr name="859" id="859">
<td><a id="l859" class='ln'>859</a></td><td>        <a id="859c9" class="tk">breathrate_B</a>.<a id="859c22" class="tk">b_i</a> = 0;</td></tr>
<tr name="860" id="860">
<td><a id="l860" class='ln'>860</a></td><td>        <span class="kw">while</span> (<a id="860c16" class="tk">breathrate_B</a>.<a id="860c29" class="tk">b_i</a> <a id="860c33" class="tk">&lt;=</a> <a id="860c36" class="tk">breathrate_B</a>.<a id="860c49" class="tk">loop_ub_b</a>)</td></tr>
<tr name="861" id="861">
<td><a id="l861" class='ln'>861</a></td><td>        <span class="br">{</span></td></tr>
<tr name="862" id="862">
<td><a id="l862" class='ln'>862</a></td><td>            <span class="kw">if</span> (<a id="862c17" class="tk">!</a><a id="862c18" class="tk">breathrate_B</a>.<a id="862c31" class="tk">idelete_data</a>[<a id="862c44" class="tk">breathrate_B</a>.<a id="862c57" class="tk">b_i</a>])</td></tr>
<tr name="863" id="863">
<td><a id="l863" class='ln'>863</a></td><td>            <span class="br">{</span></td></tr>
<tr name="864" id="864">
<td><a id="l864" class='ln'>864</a></td><td>                <a id="864c17" class="tk">breathrate_B</a>.<a id="864c30" class="tk">b_data</a>[<a id="864c37" class="tk">breathrate_B</a>.<a id="864c50" class="tk">trueCount</a>] = (<a id="864c64" class="tk">uint8_T</a>)(<a id="864c73" class="tk">int32_T</a>)</td></tr>
<tr name="865" id="865">
<td><a id="l865" class='ln'>865</a></td><td>                    (<a id="865c22" class="tk">breathrate_B</a>.<a id="865c35" class="tk">b_i</a> <a id="865c39" class="tk">+</a> 1);</td></tr>
<tr name="866" id="866">
<td><a id="l866" class='ln'>866</a></td><td>                <a id="866c17" class="tk">breathrate_B</a>.<a id="866c30" class="tk">trueCount</a><a id="866c39" class="tk">++</a>;</td></tr>
<tr name="867" id="867">
<td><a id="l867" class='ln'>867</a></td><td>            <span class="br">}</span></td></tr>
<tr name="868" id="868">
<td><a id="l868" class='ln'>868</a></td><td></td></tr>
<tr name="869" id="869">
<td><a id="l869" class='ln'>869</a></td><td>            <a id="869c13" class="tk">breathrate_B</a>.<a id="869c26" class="tk">b_i</a><a id="869c29" class="tk">++</a>;</td></tr>
<tr name="870" id="870">
<td><a id="l870" class='ln'>870</a></td><td>        <span class="br">}</span></td></tr>
<tr name="871" id="871">
<td><a id="l871" class='ln'>871</a></td><td></td></tr>
<tr name="872" id="872">
<td><a id="l872" class='ln'>872</a></td><td>        <a id="872c9" class="tk">*</a><a id="872c10" class="tk">idx_size</a> = <a id="872c21" class="tk">breathrate_B</a>.<a id="872c34" class="tk">idelete_size_idx_0</a>;</td></tr>
<tr name="873" id="873">
<td><a id="l873" class='ln'>873</a></td><td>        <span class="kw">for</span> (<a id="873c14" class="tk">breathrate_B</a>.<a id="873c27" class="tk">trueCount</a> = 0; <a id="873c42" class="tk">breathrate_B</a>.<a id="873c55" class="tk">trueCount</a> <a id="873c65" class="tk">&lt;</a></td></tr>
<tr name="874" id="874">
<td><a id="l874" class='ln'>874</a></td><td>                <a id="874c17" class="tk">breathrate_B</a>.<a id="874c30" class="tk">idelete_size_idx_0</a>; <a id="874c50" class="tk">breathrate_B</a>.<a id="874c63" class="tk">trueCount</a><a id="874c72" class="tk">++</a>)</td></tr>
<tr name="875" id="875">
<td><a id="l875" class='ln'>875</a></td><td>        <span class="br">{</span></td></tr>
<tr name="876" id="876">
<td><a id="l876" class='ln'>876</a></td><td>            <a id="876c13" class="tk">idx_data</a>[<a id="876c22" class="tk">breathrate_B</a>.<a id="876c35" class="tk">trueCount</a>] = <a id="876c48" class="tk">breathrate_B</a>.<a id="876c61" class="tk">sortIdx_data</a></td></tr>
<tr name="877" id="877">
<td><a id="l877" class='ln'>877</a></td><td>                [(<a id="877c19" class="tk">int32_T</a>)<a id="877c27" class="tk">breathrate_B</a>.<a id="877c40" class="tk">b_data</a>[<a id="877c47" class="tk">breathrate_B</a>.<a id="877c60" class="tk">trueCount</a>] <a id="877c71" class="tk">-</a> 1];</td></tr>
<tr name="878" id="878">
<td><a id="l878" class='ln'>878</a></td><td>        <span class="br">}</span></td></tr>
<tr name="879" id="879">
<td><a id="l879" class='ln'>879</a></td><td></td></tr>
<tr name="880" id="880">
<td><a id="l880" class='ln'>880</a></td><td>        <a id="880c9" class="tk">breathrate_sort</a>(<a id="880c25" class="tk">idx_data</a>, <a id="880c35" class="tk">idx_size</a>);</td></tr>
<tr name="881" id="881">
<td><a id="l881" class='ln'>881</a></td><td>    <span class="br">}</span></td></tr>
<tr name="882" id="882">
<td><a id="l882" class='ln'>882</a></td><td><span class="br">}</span></td></tr>
<tr name="883" id="883">
<td><a id="l883" class='ln'>883</a></td><td></td></tr>
<tr name="884" id="884">
<td><a id="l884" class='ln'>884</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="884c13" class="tk">breathrate_findpeaks</a>(<span class="kw">const</span> <a id="884c40" class="tk">real32_T</a> <a id="884c49" class="tk">Yin</a>[149], <a id="884c59" class="tk">real32_T</a> <a id="884c68" class="tk">Ypk_data</a>[],</td></tr>
<tr name="885" id="885">
<td><a id="l885" class='ln'>885</a></td><td>    <a id="885c5" class="tk">int32_T</a> <a id="885c13" class="tk">*</a><a id="885c14" class="tk">Ypk_size</a>, <a id="885c24" class="tk">real_T</a> <a id="885c31" class="tk">Xpk_data</a>[], <a id="885c43" class="tk">int32_T</a> <a id="885c51" class="tk">*</a><a id="885c52" class="tk">Xpk_size</a>)</td></tr>
<tr name="886" id="886">
<td><a id="l886" class='ln'>886</a></td><td><span class="br">{</span></td></tr>
<tr name="887" id="887">
<td><a id="l887" class='ln'>887</a></td><td>    <a id="887c5" class="tk">breathrate_getAllPeaksCodegen</a>(<a id="887c35" class="tk">Yin</a>, <a id="887c40" class="tk">breathrate_B</a>.<a id="887c53" class="tk">iFinite_data</a>,</td></tr>
<tr name="888" id="888">
<td><a id="l888" class='ln'>888</a></td><td>        <a id="888c9" class="tk">&amp;</a><a id="888c10" class="tk">breathrate_B</a>.<a id="888c23" class="tk">iFinite_size</a>, <a id="888c37" class="tk">&amp;</a><a id="888c38" class="tk">breathrate_B</a>.<a id="888c51" class="tk">iPk_size</a>,</td></tr>
<tr name="889" id="889">
<td><a id="l889" class='ln'>889</a></td><td>        <a id="889c9" class="tk">breathrate_B</a>.<a id="889c22" class="tk">idx_data</a>, <a id="889c32" class="tk">&amp;</a><a id="889c33" class="tk">breathrate_B</a>.<a id="889c46" class="tk">idx_size</a>);</td></tr>
<tr name="890" id="890">
<td><a id="l890" class='ln'>890</a></td><td>    <a id="890c5" class="tk">breathrate_removeSmallPeaks</a>(<a id="890c33" class="tk">Yin</a>, <a id="890c38" class="tk">breathrate_B</a>.<a id="890c51" class="tk">iFinite_data</a>,</td></tr>
<tr name="891" id="891">
<td><a id="l891" class='ln'>891</a></td><td>        <a id="891c9" class="tk">&amp;</a><a id="891c10" class="tk">breathrate_B</a>.<a id="891c23" class="tk">iFinite_size</a>, <a id="891c37" class="tk">breathrate_B</a>.<a id="891c50" class="tk">tmp_data</a>,</td></tr>
<tr name="892" id="892">
<td><a id="l892" class='ln'>892</a></td><td>        <a id="892c9" class="tk">&amp;</a><a id="892c10" class="tk">breathrate_B</a>.<a id="892c23" class="tk">iPk_size</a>);</td></tr>
<tr name="893" id="893">
<td><a id="l893" class='ln'>893</a></td><td>    <a id="893c5" class="tk">breathrate_do_vectors</a>(<a id="893c27" class="tk">breathrate_B</a>.<a id="893c40" class="tk">tmp_data</a>, <a id="893c50" class="tk">&amp;</a><a id="893c51" class="tk">breathrate_B</a>.<a id="893c64" class="tk">iPk_size</a>,</td></tr>
<tr name="894" id="894">
<td><a id="l894" class='ln'>894</a></td><td>                          <a id="894c27" class="tk">breathrate_B</a>.<a id="894c40" class="tk">iFinite_data</a>, <a id="894c54" class="tk">&amp;</a><a id="894c55" class="tk">breathrate_B</a>.<a id="894c68" class="tk">iFinite_size</a>,</td></tr>
<tr name="895" id="895">
<td><a id="l895" class='ln'>895</a></td><td>                          <a id="895c27" class="tk">breathrate_B</a>.<a id="895c40" class="tk">idx_data</a>, <a id="895c50" class="tk">&amp;</a><a id="895c51" class="tk">breathrate_B</a>.<a id="895c64" class="tk">idx_size</a>,</td></tr>
<tr name="896" id="896">
<td><a id="l896" class='ln'>896</a></td><td>                          <a id="896c27" class="tk">&amp;</a><a id="896c28" class="tk">breathrate_B</a>.<a id="896c41" class="tk">ib_size</a>);</td></tr>
<tr name="897" id="897">
<td><a id="l897" class='ln'>897</a></td><td>    <a id="897c5" class="tk">findPeaksSeparatedByMoreThanMin</a>(<a id="897c37" class="tk">Yin</a>, <a id="897c42" class="tk">breathrate_B</a>.<a id="897c55" class="tk">iFinite_data</a>,</td></tr>
<tr name="898" id="898">
<td><a id="l898" class='ln'>898</a></td><td>        <a id="898c9" class="tk">&amp;</a><a id="898c10" class="tk">breathrate_B</a>.<a id="898c23" class="tk">iFinite_size</a>, <a id="898c37" class="tk">breathrate_B</a>.<a id="898c50" class="tk">idx_data</a>,</td></tr>
<tr name="899" id="899">
<td><a id="l899" class='ln'>899</a></td><td>        <a id="899c9" class="tk">&amp;</a><a id="899c10" class="tk">breathrate_B</a>.<a id="899c23" class="tk">idx_size</a>);</td></tr>
<tr name="900" id="900">
<td><a id="l900" class='ln'>900</a></td><td>    <a id="900c5" class="tk">breathrate_B</a>.<a id="900c18" class="tk">loop_ub</a> = <a id="900c28" class="tk">breathrate_B</a>.<a id="900c41" class="tk">idx_size</a>;</td></tr>
<tr name="901" id="901">
<td><a id="l901" class='ln'>901</a></td><td>    <span class="kw">for</span> (<a id="901c10" class="tk">breathrate_B</a>.<a id="901c23" class="tk">i0</a> = 0; <a id="901c31" class="tk">breathrate_B</a>.<a id="901c44" class="tk">i0</a> <a id="901c47" class="tk">&lt;</a> <a id="901c49" class="tk">breathrate_B</a>.<a id="901c62" class="tk">loop_ub</a>;</td></tr>
<tr name="902" id="902">
<td><a id="l902" class='ln'>902</a></td><td>            <a id="902c13" class="tk">breathrate_B</a>.<a id="902c26" class="tk">i0</a><a id="902c28" class="tk">++</a>)</td></tr>
<tr name="903" id="903">
<td><a id="l903" class='ln'>903</a></td><td>    <span class="br">{</span></td></tr>
<tr name="904" id="904">
<td><a id="l904" class='ln'>904</a></td><td>        <a id="904c9" class="tk">breathrate_B</a>.<a id="904c22" class="tk">iPk_data</a>[<a id="904c31" class="tk">breathrate_B</a>.<a id="904c44" class="tk">i0</a>] =</td></tr>
<tr name="905" id="905">
<td><a id="l905" class='ln'>905</a></td><td>            <a id="905c13" class="tk">breathrate_B</a>.<a id="905c26" class="tk">iFinite_data</a>[<a id="905c39" class="tk">breathrate_B</a>.<a id="905c52" class="tk">idx_data</a>[<a id="905c61" class="tk">breathrate_B</a>.<a id="905c74" class="tk">i0</a>] <a id="905c78" class="tk">-</a> 1];</td></tr>
<tr name="906" id="906">
<td><a id="l906" class='ln'>906</a></td><td>    <span class="br">}</span></td></tr>
<tr name="907" id="907">
<td><a id="l907" class='ln'>907</a></td><td></td></tr>
<tr name="908" id="908">
<td><a id="l908" class='ln'>908</a></td><td>    <a id="908c5" class="tk">*</a><a id="908c6" class="tk">Ypk_size</a> = <a id="908c17" class="tk">breathrate_B</a>.<a id="908c30" class="tk">idx_size</a>;</td></tr>
<tr name="909" id="909">
<td><a id="l909" class='ln'>909</a></td><td>    <a id="909c5" class="tk">breathrate_B</a>.<a id="909c18" class="tk">loop_ub</a> = <a id="909c28" class="tk">breathrate_B</a>.<a id="909c41" class="tk">idx_size</a>;</td></tr>
<tr name="910" id="910">
<td><a id="l910" class='ln'>910</a></td><td>    <span class="kw">for</span> (<a id="910c10" class="tk">breathrate_B</a>.<a id="910c23" class="tk">i0</a> = 0; <a id="910c31" class="tk">breathrate_B</a>.<a id="910c44" class="tk">i0</a> <a id="910c47" class="tk">&lt;</a> <a id="910c49" class="tk">breathrate_B</a>.<a id="910c62" class="tk">loop_ub</a>;</td></tr>
<tr name="911" id="911">
<td><a id="l911" class='ln'>911</a></td><td>            <a id="911c13" class="tk">breathrate_B</a>.<a id="911c26" class="tk">i0</a><a id="911c28" class="tk">++</a>)</td></tr>
<tr name="912" id="912">
<td><a id="l912" class='ln'>912</a></td><td>    <span class="br">{</span></td></tr>
<tr name="913" id="913">
<td><a id="l913" class='ln'>913</a></td><td>        <a id="913c9" class="tk">Ypk_data</a>[<a id="913c18" class="tk">breathrate_B</a>.<a id="913c31" class="tk">i0</a>] = <a id="913c37" class="tk">Yin</a>[<a id="913c41" class="tk">breathrate_B</a>.<a id="913c54" class="tk">iPk_data</a>[<a id="913c63" class="tk">breathrate_B</a>.<a id="913c76" class="tk">i0</a>] <a id="913c80" class="tk">-</a></td></tr>
<tr name="914" id="914">
<td><a id="l914" class='ln'>914</a></td><td>            1];</td></tr>
<tr name="915" id="915">
<td><a id="l915" class='ln'>915</a></td><td>    <span class="br">}</span></td></tr>
<tr name="916" id="916">
<td><a id="l916" class='ln'>916</a></td><td></td></tr>
<tr name="917" id="917">
<td><a id="l917" class='ln'>917</a></td><td>    <a id="917c5" class="tk">*</a><a id="917c6" class="tk">Xpk_size</a> = <a id="917c17" class="tk">breathrate_B</a>.<a id="917c30" class="tk">idx_size</a>;</td></tr>
<tr name="918" id="918">
<td><a id="l918" class='ln'>918</a></td><td>    <a id="918c5" class="tk">breathrate_B</a>.<a id="918c18" class="tk">loop_ub</a> = <a id="918c28" class="tk">breathrate_B</a>.<a id="918c41" class="tk">idx_size</a>;</td></tr>
<tr name="919" id="919">
<td><a id="l919" class='ln'>919</a></td><td>    <span class="kw">for</span> (<a id="919c10" class="tk">breathrate_B</a>.<a id="919c23" class="tk">i0</a> = 0; <a id="919c31" class="tk">breathrate_B</a>.<a id="919c44" class="tk">i0</a> <a id="919c47" class="tk">&lt;</a> <a id="919c49" class="tk">breathrate_B</a>.<a id="919c62" class="tk">loop_ub</a>;</td></tr>
<tr name="920" id="920">
<td><a id="l920" class='ln'>920</a></td><td>            <a id="920c13" class="tk">breathrate_B</a>.<a id="920c26" class="tk">i0</a><a id="920c28" class="tk">++</a>)</td></tr>
<tr name="921" id="921">
<td><a id="l921" class='ln'>921</a></td><td>    <span class="br">{</span></td></tr>
<tr name="922" id="922">
<td><a id="l922" class='ln'>922</a></td><td>        <a id="922c9" class="tk">Xpk_data</a>[<a id="922c18" class="tk">breathrate_B</a>.<a id="922c31" class="tk">i0</a>] = (<a id="922c38" class="tk">real_T</a>)(<a id="922c46" class="tk">uint8_T</a>)((<a id="922c56" class="tk">uint32_T</a>)(<a id="922c66" class="tk">uint8_T</a>)</td></tr>
<tr name="923" id="923">
<td><a id="l923" class='ln'>923</a></td><td>            (<a id="923c14" class="tk">int32_T</a>)(<a id="923c23" class="tk">breathrate_B</a>.<a id="923c36" class="tk">iPk_data</a>[<a id="923c45" class="tk">breathrate_B</a>.<a id="923c58" class="tk">i0</a>] <a id="923c62" class="tk">-</a> 1) <a id="923c67" class="tk">+</a> 1U);</td></tr>
<tr name="924" id="924">
<td><a id="l924" class='ln'>924</a></td><td>    <span class="br">}</span></td></tr>
<tr name="925" id="925">
<td><a id="l925" class='ln'>925</a></td><td><span class="br">}</span></td></tr>
<tr name="926" id="926">
<td><a id="l926" class='ln'>926</a></td><td></td></tr>
<tr name="927" id="927">
<td><a id="l927" class='ln'>927</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="927c13" class="tk">breathrate_diff</a>(<span class="kw">const</span> <a id="927c35" class="tk">real_T</a> <a id="927c42" class="tk">x_data</a>[], <span class="kw">const</span> <a id="927c58" class="tk">int32_T</a> <a id="927c66" class="tk">*</a><a id="927c67" class="tk">x_size</a>, <a id="927c75" class="tk">real_T</a></td></tr>
<tr name="928" id="928">
<td><a id="l928" class='ln'>928</a></td><td>    <a id="928c5" class="tk">y_data</a>[], <a id="928c15" class="tk">int32_T</a> <a id="928c23" class="tk">*</a><a id="928c24" class="tk">y_size</a>)</td></tr>
<tr name="929" id="929">
<td><a id="l929" class='ln'>929</a></td><td><span class="br">{</span></td></tr>
<tr name="930" id="930">
<td><a id="l930" class='ln'>930</a></td><td>    <a id="930c5" class="tk">int32_T</a> <a id="930c13" class="tk">ixLead</a>;</td></tr>
<tr name="931" id="931">
<td><a id="l931" class='ln'>931</a></td><td>    <a id="931c5" class="tk">int32_T</a> <a id="931c13" class="tk">iyLead</a>;</td></tr>
<tr name="932" id="932">
<td><a id="l932" class='ln'>932</a></td><td>    <a id="932c5" class="tk">real_T</a> <a id="932c12" class="tk">tmp2</a>;</td></tr>
<tr name="933" id="933">
<td><a id="l933" class='ln'>933</a></td><td>    <a id="933c5" class="tk">int32_T</a> <a id="933c13" class="tk">m</a>;</td></tr>
<tr name="934" id="934">
<td><a id="l934" class='ln'>934</a></td><td>    <a id="934c5" class="tk">real_T</a> <a id="934c12" class="tk">work_data_idx_0</a>;</td></tr>
<tr name="935" id="935">
<td><a id="l935" class='ln'>935</a></td><td>    <a id="935c5" class="tk">uint8_T</a> <a id="935c13" class="tk">ySize_idx_0</a>;</td></tr>
<tr name="936" id="936">
<td><a id="l936" class='ln'>936</a></td><td>    <span class="kw">if</span> (<a id="936c9" class="tk">*</a><a id="936c10" class="tk">x_size</a> <a id="936c17" class="tk">==</a> 0)</td></tr>
<tr name="937" id="937">
<td><a id="l937" class='ln'>937</a></td><td>    <span class="br">{</span></td></tr>
<tr name="938" id="938">
<td><a id="l938" class='ln'>938</a></td><td>        <a id="938c9" class="tk">*</a><a id="938c10" class="tk">y_size</a> = 0;</td></tr>
<tr name="939" id="939">
<td><a id="l939" class='ln'>939</a></td><td>    <span class="br">}</span></td></tr>
<tr name="940" id="940">
<td><a id="l940" class='ln'>940</a></td><td>    <span class="kw">else</span></td></tr>
<tr name="941" id="941">
<td><a id="l941" class='ln'>941</a></td><td>    <span class="br">{</span></td></tr>
<tr name="942" id="942">
<td><a id="l942" class='ln'>942</a></td><td>        <a id="942c9" class="tk">ixLead</a> = <a id="942c18" class="tk">*</a><a id="942c19" class="tk">x_size</a> <a id="942c26" class="tk">-</a> 1;</td></tr>
<tr name="943" id="943">
<td><a id="l943" class='ln'>943</a></td><td>        <span class="kw">if</span> (<a id="943c13" class="tk">ixLead</a> <a id="943c20" class="tk">&gt;=</a> 1)</td></tr>
<tr name="944" id="944">
<td><a id="l944" class='ln'>944</a></td><td>        <span class="br">{</span></td></tr>
<tr name="945" id="945">
<td><a id="l945" class='ln'>945</a></td><td>            <a id="945c13" class="tk">ixLead</a> = 1;</td></tr>
<tr name="946" id="946">
<td><a id="l946" class='ln'>946</a></td><td>        <span class="br">}</span></td></tr>
<tr name="947" id="947">
<td><a id="l947" class='ln'>947</a></td><td></td></tr>
<tr name="948" id="948">
<td><a id="l948" class='ln'>948</a></td><td>        <span class="kw">if</span> (<a id="948c13" class="tk">ixLead</a> <a id="948c20" class="tk">&lt;</a> 1)</td></tr>
<tr name="949" id="949">
<td><a id="l949" class='ln'>949</a></td><td>        <span class="br">{</span></td></tr>
<tr name="950" id="950">
<td><a id="l950" class='ln'>950</a></td><td>            <a id="950c13" class="tk">*</a><a id="950c14" class="tk">y_size</a> = 0;</td></tr>
<tr name="951" id="951">
<td><a id="l951" class='ln'>951</a></td><td>        <span class="br">}</span></td></tr>
<tr name="952" id="952">
<td><a id="l952" class='ln'>952</a></td><td>        <span class="kw">else</span></td></tr>
<tr name="953" id="953">
<td><a id="l953" class='ln'>953</a></td><td>        <span class="br">{</span></td></tr>
<tr name="954" id="954">
<td><a id="l954" class='ln'>954</a></td><td>            <a id="954c13" class="tk">ySize_idx_0</a> = (<a id="954c28" class="tk">uint8_T</a>)(<a id="954c37" class="tk">int32_T</a>)(<a id="954c46" class="tk">*</a><a id="954c47" class="tk">x_size</a> <a id="954c54" class="tk">-</a> 1);</td></tr>
<tr name="955" id="955">
<td><a id="l955" class='ln'>955</a></td><td>            <a id="955c13" class="tk">*</a><a id="955c14" class="tk">y_size</a> = (<a id="955c24" class="tk">int32_T</a>)<a id="955c32" class="tk">ySize_idx_0</a>;</td></tr>
<tr name="956" id="956">
<td><a id="l956" class='ln'>956</a></td><td>            <span class="kw">if</span> ((<a id="956c18" class="tk">int32_T</a>)<a id="956c26" class="tk">ySize_idx_0</a> <a id="956c38" class="tk">!=</a> 0)</td></tr>
<tr name="957" id="957">
<td><a id="l957" class='ln'>957</a></td><td>            <span class="br">{</span></td></tr>
<tr name="958" id="958">
<td><a id="l958" class='ln'>958</a></td><td>                <a id="958c17" class="tk">ixLead</a> = 1;</td></tr>
<tr name="959" id="959">
<td><a id="l959" class='ln'>959</a></td><td>                <a id="959c17" class="tk">iyLead</a> = 0;</td></tr>
<tr name="960" id="960">
<td><a id="l960" class='ln'>960</a></td><td>                <a id="960c17" class="tk">work_data_idx_0</a> = <a id="960c35" class="tk">x_data</a>[0];</td></tr>
<tr name="961" id="961">
<td><a id="l961" class='ln'>961</a></td><td>                <span class="kw">for</span> (<a id="961c22" class="tk">m</a> = 2; <a id="961c29" class="tk">m</a> <a id="961c31" class="tk">&lt;=</a> <a id="961c34" class="tk">*</a><a id="961c35" class="tk">x_size</a>; <a id="961c43" class="tk">m</a><a id="961c44" class="tk">++</a>)</td></tr>
<tr name="962" id="962">
<td><a id="l962" class='ln'>962</a></td><td>                <span class="br">{</span></td></tr>
<tr name="963" id="963">
<td><a id="l963" class='ln'>963</a></td><td>                    <a id="963c21" class="tk">tmp2</a> = <a id="963c28" class="tk">work_data_idx_0</a>;</td></tr>
<tr name="964" id="964">
<td><a id="l964" class='ln'>964</a></td><td>                    <a id="964c21" class="tk">work_data_idx_0</a> = <a id="964c39" class="tk">x_data</a>[<a id="964c46" class="tk">ixLead</a>];</td></tr>
<tr name="965" id="965">
<td><a id="l965" class='ln'>965</a></td><td>                    <a id="965c21" class="tk">y_data</a>[<a id="965c28" class="tk">iyLead</a>] = <a id="965c38" class="tk">x_data</a>[<a id="965c45" class="tk">ixLead</a>] <a id="965c53" class="tk">-</a> <a id="965c55" class="tk">tmp2</a>;</td></tr>
<tr name="966" id="966">
<td><a id="l966" class='ln'>966</a></td><td>                    <a id="966c21" class="tk">ixLead</a><a id="966c27" class="tk">++</a>;</td></tr>
<tr name="967" id="967">
<td><a id="l967" class='ln'>967</a></td><td>                    <a id="967c21" class="tk">iyLead</a><a id="967c27" class="tk">++</a>;</td></tr>
<tr name="968" id="968">
<td><a id="l968" class='ln'>968</a></td><td>                <span class="br">}</span></td></tr>
<tr name="969" id="969">
<td><a id="l969" class='ln'>969</a></td><td>            <span class="br">}</span></td></tr>
<tr name="970" id="970">
<td><a id="l970" class='ln'>970</a></td><td>        <span class="br">}</span></td></tr>
<tr name="971" id="971">
<td><a id="l971" class='ln'>971</a></td><td>    <span class="br">}</span></td></tr>
<tr name="972" id="972">
<td><a id="l972" class='ln'>972</a></td><td><span class="br">}</span></td></tr>
<tr name="973" id="973">
<td><a id="l973" class='ln'>973</a></td><td></td></tr>
<tr name="974" id="974">
<td><a id="l974" class='ln'>974</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="974c13" class="tk">breathrate_SystemCore_release</a>(<a id="974c43" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="974c75" class="tk">*</a><a id="974c76" class="tk">obj</a>)</td></tr>
<tr name="975" id="975">
<td><a id="l975" class='ln'>975</a></td><td><span class="br">{</span></td></tr>
<tr name="976" id="976">
<td><a id="l976" class='ln'>976</a></td><td>    <span class="kw">if</span> (<a id="976c9" class="tk">obj</a>-&gt;<a id="976c14" class="tk">isInitialized</a> <a id="976c28" class="tk">==</a> 1)</td></tr>
<tr name="977" id="977">
<td><a id="l977" class='ln'>977</a></td><td>    <span class="br">{</span></td></tr>
<tr name="978" id="978">
<td><a id="l978" class='ln'>978</a></td><td>        <a id="978c9" class="tk">obj</a>-&gt;<a id="978c14" class="tk">isInitialized</a> = 2;</td></tr>
<tr name="979" id="979">
<td><a id="l979" class='ln'>979</a></td><td>    <span class="br">}</span></td></tr>
<tr name="980" id="980">
<td><a id="l980" class='ln'>980</a></td><td><span class="br">}</span></td></tr>
<tr name="981" id="981">
<td><a id="l981" class='ln'>981</a></td><td></td></tr>
<tr name="982" id="982">
<td><a id="l982" class='ln'>982</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="982c13" class="tk">brea_LPHPFilterBase_releaseImpl</a>(<a id="982c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="982c76" class="tk">*</a><a id="982c77" class="tk">obj</a>)</td></tr>
<tr name="983" id="983">
<td><a id="l983" class='ln'>983</a></td><td><span class="br">{</span></td></tr>
<tr name="984" id="984">
<td><a id="l984" class='ln'>984</a></td><td>    <a id="984c5" class="tk">breathrate_SystemCore_release</a>(<a id="984c35" class="tk">obj</a>-&gt;<a id="984c40" class="tk">FilterObj</a>);</td></tr>
<tr name="985" id="985">
<td><a id="l985" class='ln'>985</a></td><td>    <a id="985c5" class="tk">obj</a>-&gt;<a id="985c10" class="tk">NumChannels</a> = <a id="985c24" class="tk">-</a>1;</td></tr>
<tr name="986" id="986">
<td><a id="l986" class='ln'>986</a></td><td><span class="br">}</span></td></tr>
<tr name="987" id="987">
<td><a id="l987" class='ln'>987</a></td><td></td></tr>
<tr name="988" id="988">
<td><a id="l988" class='ln'>988</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="988c13" class="tk">breat_SystemCore_releaseWrapper</a>(<a id="988c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="988c76" class="tk">*</a><a id="988c77" class="tk">obj</a>)</td></tr>
<tr name="989" id="989">
<td><a id="l989" class='ln'>989</a></td><td><span class="br">{</span></td></tr>
<tr name="990" id="990">
<td><a id="l990" class='ln'>990</a></td><td>    <span class="kw">if</span> (<a id="990c9" class="tk">obj</a>-&gt;<a id="990c14" class="tk">isSetupComplete</a>)</td></tr>
<tr name="991" id="991">
<td><a id="l991" class='ln'>991</a></td><td>    <span class="br">{</span></td></tr>
<tr name="992" id="992">
<td><a id="l992" class='ln'>992</a></td><td>        <a id="992c9" class="tk">brea_LPHPFilterBase_releaseImpl</a>(<a id="992c41" class="tk">obj</a>);</td></tr>
<tr name="993" id="993">
<td><a id="l993" class='ln'>993</a></td><td>    <span class="br">}</span></td></tr>
<tr name="994" id="994">
<td><a id="l994" class='ln'>994</a></td><td><span class="br">}</span></td></tr>
<tr name="995" id="995">
<td><a id="l995" class='ln'>995</a></td><td></td></tr>
<tr name="996" id="996">
<td><a id="l996" class='ln'>996</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="996c13" class="tk">breathrate_SystemCore_release_l</a>(<a id="996c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="996c76" class="tk">*</a><a id="996c77" class="tk">obj</a>)</td></tr>
<tr name="997" id="997">
<td><a id="l997" class='ln'>997</a></td><td><span class="br">{</span></td></tr>
<tr name="998" id="998">
<td><a id="l998" class='ln'>998</a></td><td>    <span class="kw">if</span> (<a id="998c9" class="tk">obj</a>-&gt;<a id="998c14" class="tk">isInitialized</a> <a id="998c28" class="tk">==</a> 1)</td></tr>
<tr name="999" id="999">
<td><a id="l999" class='ln'>999</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1000" id="1000">
<td><a id="l1000" class='ln'>1000</a></td><td>        <a id="1000c9" class="tk">breat_SystemCore_releaseWrapper</a>(<a id="1000c41" class="tk">obj</a>);</td></tr>
<tr name="1001" id="1001">
<td><a id="l1001" class='ln'>1001</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1002" id="1002">
<td><a id="l1002" class='ln'>1002</a></td><td><span class="br">}</span></td></tr>
<tr name="1003" id="1003">
<td><a id="l1003" class='ln'>1003</a></td><td></td></tr>
<tr name="1004" id="1004">
<td><a id="l1004" class='ln'>1004</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="1004c13" class="tk">breathrate_SystemCore_delete_l</a>(<a id="1004c44" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="1004c75" class="tk">*</a><a id="1004c76" class="tk">obj</a>)</td></tr>
<tr name="1005" id="1005">
<td><a id="l1005" class='ln'>1005</a></td><td><span class="br">{</span></td></tr>
<tr name="1006" id="1006">
<td><a id="l1006" class='ln'>1006</a></td><td>    <a id="1006c5" class="tk">breathrate_SystemCore_release_l</a>(<a id="1006c37" class="tk">obj</a>);</td></tr>
<tr name="1007" id="1007">
<td><a id="l1007" class='ln'>1007</a></td><td><span class="br">}</span></td></tr>
<tr name="1008" id="1008">
<td><a id="l1008" class='ln'>1008</a></td><td></td></tr>
<tr name="1009" id="1009">
<td><a id="l1009" class='ln'>1009</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="1009c13" class="tk">matlabCodegenHandle_matlabCod_l</a>(<a id="1009c45" class="tk">dsp_LowpassFilter_breathrate_T</a> <a id="1009c76" class="tk">*</a><a id="1009c77" class="tk">obj</a>)</td></tr>
<tr name="1010" id="1010">
<td><a id="l1010" class='ln'>1010</a></td><td><span class="br">{</span></td></tr>
<tr name="1011" id="1011">
<td><a id="l1011" class='ln'>1011</a></td><td>    <span class="kw">if</span> (<a id="1011c9" class="tk">!</a><a id="1011c10" class="tk">obj</a>-&gt;<a id="1011c15" class="tk">matlabCodegenIsDeleted</a>)</td></tr>
<tr name="1012" id="1012">
<td><a id="l1012" class='ln'>1012</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1013" id="1013">
<td><a id="l1013" class='ln'>1013</a></td><td>        <a id="1013c9" class="tk">obj</a>-&gt;<a id="1013c14" class="tk">matlabCodegenIsDeleted</a> = true;</td></tr>
<tr name="1014" id="1014">
<td><a id="l1014" class='ln'>1014</a></td><td>        <a id="1014c9" class="tk">breathrate_SystemCore_delete_l</a>(<a id="1014c40" class="tk">obj</a>);</td></tr>
<tr name="1015" id="1015">
<td><a id="l1015" class='ln'>1015</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1016" id="1016">
<td><a id="l1016" class='ln'>1016</a></td><td><span class="br">}</span></td></tr>
<tr name="1017" id="1017">
<td><a id="l1017" class='ln'>1017</a></td><td></td></tr>
<tr name="1018" id="1018">
<td><a id="l1018" class='ln'>1018</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="1018c13" class="tk">breathrate_SystemCore_delete</a>(<a id="1018c42" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="1018c74" class="tk">*</a><a id="1018c75" class="tk">obj</a>)</td></tr>
<tr name="1019" id="1019">
<td><a id="l1019" class='ln'>1019</a></td><td><span class="br">{</span></td></tr>
<tr name="1020" id="1020">
<td><a id="l1020" class='ln'>1020</a></td><td>    <a id="1020c5" class="tk">breathrate_SystemCore_release</a>(<a id="1020c35" class="tk">obj</a>);</td></tr>
<tr name="1021" id="1021">
<td><a id="l1021" class='ln'>1021</a></td><td><span class="br">}</span></td></tr>
<tr name="1022" id="1022">
<td><a id="l1022" class='ln'>1022</a></td><td></td></tr>
<tr name="1023" id="1023">
<td><a id="l1023" class='ln'>1023</a></td><td><span class="kw">static</span> <span class="kw">void</span> <a id="1023c13" class="tk">matlabCodegenHandle_matlabCodeg</a>(<a id="1023c45" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="1023c77" class="tk">*</a><a id="1023c78" class="tk">obj</a>)</td></tr>
<tr name="1024" id="1024">
<td><a id="l1024" class='ln'>1024</a></td><td><span class="br">{</span></td></tr>
<tr name="1025" id="1025">
<td><a id="l1025" class='ln'>1025</a></td><td>    <span class="kw">if</span> (<a id="1025c9" class="tk">!</a><a id="1025c10" class="tk">obj</a>-&gt;<a id="1025c15" class="tk">matlabCodegenIsDeleted</a>)</td></tr>
<tr name="1026" id="1026">
<td><a id="l1026" class='ln'>1026</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1027" id="1027">
<td><a id="l1027" class='ln'>1027</a></td><td>        <a id="1027c9" class="tk">obj</a>-&gt;<a id="1027c14" class="tk">matlabCodegenIsDeleted</a> = true;</td></tr>
<tr name="1028" id="1028">
<td><a id="l1028" class='ln'>1028</a></td><td>        <a id="1028c9" class="tk">breathrate_SystemCore_delete</a>(<a id="1028c38" class="tk">obj</a>);</td></tr>
<tr name="1029" id="1029">
<td><a id="l1029" class='ln'>1029</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1030" id="1030">
<td><a id="l1030" class='ln'>1030</a></td><td><span class="br">}</span></td></tr>
<tr name="1031" id="1031">
<td><a id="l1031" class='ln'>1031</a></td><td></td></tr>
<tr name="1032" id="1032">
<td><a id="l1032" class='ln'>1032</a></td><td><span class="kw">void</span> <a id="1032c6" class="tk">breathrate_step</a>(<span class="kw">void</span>)</td></tr>
<tr name="1033" id="1033">
<td><a id="l1033" class='ln'>1033</a></td><td><span class="br">{</span></td></tr>
<tr name="1034" id="1034">
<td><a id="l1034" class='ln'>1034</a></td><td>    <a id="1034c5" class="tk">dsp_BiquadFilter_0_breathrate_T</a> <a id="1034c37" class="tk">*</a><a id="1034c38" class="tk">obj</a>;</td></tr>
<tr name="1035" id="1035">
<td><a id="l1035" class='ln'>1035</a></td><td>    <span class="kw">if</span> (<a id="1035c9" class="tk">breathrate_DW</a>.<a id="1035c23" class="tk">obj</a>.<a id="1035c27" class="tk">FilterObj</a>-&gt;<a id="1035c38" class="tk">isInitialized</a> <a id="1035c52" class="tk">!=</a> 1)</td></tr>
<tr name="1036" id="1036">
<td><a id="l1036" class='ln'>1036</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1037" id="1037">
<td><a id="l1037" class='ln'>1037</a></td><td>        <a id="1037c9" class="tk">breathrate_DW</a>.<a id="1037c23" class="tk">obj</a>.<a id="1037c27" class="tk">FilterObj</a>-&gt;<a id="1037c38" class="tk">isSetupComplete</a> = false;</td></tr>
<tr name="1038" id="1038">
<td><a id="l1038" class='ln'>1038</a></td><td>        <a id="1038c9" class="tk">breathrate_DW</a>.<a id="1038c23" class="tk">obj</a>.<a id="1038c27" class="tk">FilterObj</a>-&gt;<a id="1038c38" class="tk">isInitialized</a> = 1;</td></tr>
<tr name="1039" id="1039">
<td><a id="l1039" class='ln'>1039</a></td><td>        <a id="1039c9" class="tk">breathrate_DW</a>.<a id="1039c23" class="tk">obj</a>.<a id="1039c27" class="tk">FilterObj</a>-&gt;<a id="1039c38" class="tk">isSetupComplete</a> = true;</td></tr>
<tr name="1040" id="1040">
<td><a id="l1040" class='ln'>1040</a></td><td>        <a id="1040c9" class="tk">breathrate_DW</a>.<a id="1040c23" class="tk">obj</a>.<a id="1040c27" class="tk">FilterObj</a>-&gt;<a id="1040c38" class="tk">cSFunObject</a>.<a id="1040c50" class="tk">W0_ZERO_STATES</a>[0] =</td></tr>
<tr name="1041" id="1041">
<td><a id="l1041" class='ln'>1041</a></td><td>            <a id="1041c13" class="tk">breathrate_DW</a>.<a id="1041c27" class="tk">obj</a>.<a id="1041c31" class="tk">FilterObj</a>-&gt;<a id="1041c42" class="tk">cSFunObject</a>.<a id="1041c54" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1042" id="1042">
<td><a id="l1042" class='ln'>1042</a></td><td>        <a id="1042c9" class="tk">breathrate_DW</a>.<a id="1042c23" class="tk">obj</a>.<a id="1042c27" class="tk">FilterObj</a>-&gt;<a id="1042c38" class="tk">cSFunObject</a>.<a id="1042c50" class="tk">W1_POLE_STATES</a>[0] =</td></tr>
<tr name="1043" id="1043">
<td><a id="l1043" class='ln'>1043</a></td><td>            <a id="1043c13" class="tk">breathrate_DW</a>.<a id="1043c27" class="tk">obj</a>.<a id="1043c31" class="tk">FilterObj</a>-&gt;<a id="1043c42" class="tk">cSFunObject</a>.<a id="1043c54" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1044" id="1044">
<td><a id="l1044" class='ln'>1044</a></td><td>        <a id="1044c9" class="tk">breathrate_DW</a>.<a id="1044c23" class="tk">obj</a>.<a id="1044c27" class="tk">FilterObj</a>-&gt;<a id="1044c38" class="tk">cSFunObject</a>.<a id="1044c50" class="tk">W0_ZERO_STATES</a>[1] =</td></tr>
<tr name="1045" id="1045">
<td><a id="l1045" class='ln'>1045</a></td><td>            <a id="1045c13" class="tk">breathrate_DW</a>.<a id="1045c27" class="tk">obj</a>.<a id="1045c31" class="tk">FilterObj</a>-&gt;<a id="1045c42" class="tk">cSFunObject</a>.<a id="1045c54" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1046" id="1046">
<td><a id="l1046" class='ln'>1046</a></td><td>        <a id="1046c9" class="tk">breathrate_DW</a>.<a id="1046c23" class="tk">obj</a>.<a id="1046c27" class="tk">FilterObj</a>-&gt;<a id="1046c38" class="tk">cSFunObject</a>.<a id="1046c50" class="tk">W1_POLE_STATES</a>[1] =</td></tr>
<tr name="1047" id="1047">
<td><a id="l1047" class='ln'>1047</a></td><td>            <a id="1047c13" class="tk">breathrate_DW</a>.<a id="1047c27" class="tk">obj</a>.<a id="1047c31" class="tk">FilterObj</a>-&gt;<a id="1047c42" class="tk">cSFunObject</a>.<a id="1047c54" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1048" id="1048">
<td><a id="l1048" class='ln'>1048</a></td><td>        <a id="1048c9" class="tk">breathrate_DW</a>.<a id="1048c23" class="tk">obj</a>.<a id="1048c27" class="tk">FilterObj</a>-&gt;<a id="1048c38" class="tk">cSFunObject</a>.<a id="1048c50" class="tk">W0_ZERO_STATES</a>[2] =</td></tr>
<tr name="1049" id="1049">
<td><a id="l1049" class='ln'>1049</a></td><td>            <a id="1049c13" class="tk">breathrate_DW</a>.<a id="1049c27" class="tk">obj</a>.<a id="1049c31" class="tk">FilterObj</a>-&gt;<a id="1049c42" class="tk">cSFunObject</a>.<a id="1049c54" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1050" id="1050">
<td><a id="l1050" class='ln'>1050</a></td><td>        <a id="1050c9" class="tk">breathrate_DW</a>.<a id="1050c23" class="tk">obj</a>.<a id="1050c27" class="tk">FilterObj</a>-&gt;<a id="1050c38" class="tk">cSFunObject</a>.<a id="1050c50" class="tk">W1_POLE_STATES</a>[2] =</td></tr>
<tr name="1051" id="1051">
<td><a id="l1051" class='ln'>1051</a></td><td>            <a id="1051c13" class="tk">breathrate_DW</a>.<a id="1051c27" class="tk">obj</a>.<a id="1051c31" class="tk">FilterObj</a>-&gt;<a id="1051c42" class="tk">cSFunObject</a>.<a id="1051c54" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1052" id="1052">
<td><a id="l1052" class='ln'>1052</a></td><td>        <a id="1052c9" class="tk">breathrate_DW</a>.<a id="1052c23" class="tk">obj</a>.<a id="1052c27" class="tk">FilterObj</a>-&gt;<a id="1052c38" class="tk">cSFunObject</a>.<a id="1052c50" class="tk">W0_ZERO_STATES</a>[3] =</td></tr>
<tr name="1053" id="1053">
<td><a id="l1053" class='ln'>1053</a></td><td>            <a id="1053c13" class="tk">breathrate_DW</a>.<a id="1053c27" class="tk">obj</a>.<a id="1053c31" class="tk">FilterObj</a>-&gt;<a id="1053c42" class="tk">cSFunObject</a>.<a id="1053c54" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1054" id="1054">
<td><a id="l1054" class='ln'>1054</a></td><td>        <a id="1054c9" class="tk">breathrate_DW</a>.<a id="1054c23" class="tk">obj</a>.<a id="1054c27" class="tk">FilterObj</a>-&gt;<a id="1054c38" class="tk">cSFunObject</a>.<a id="1054c50" class="tk">W1_POLE_STATES</a>[3] =</td></tr>
<tr name="1055" id="1055">
<td><a id="l1055" class='ln'>1055</a></td><td>            <a id="1055c13" class="tk">breathrate_DW</a>.<a id="1055c27" class="tk">obj</a>.<a id="1055c31" class="tk">FilterObj</a>-&gt;<a id="1055c42" class="tk">cSFunObject</a>.<a id="1055c54" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1056" id="1056">
<td><a id="l1056" class='ln'>1056</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1057" id="1057">
<td><a id="l1057" class='ln'>1057</a></td><td></td></tr>
<tr name="1058" id="1058">
<td><a id="l1058" class='ln'>1058</a></td><td>    <a id="1058c5" class="tk">obj</a> = <a id="1058c11" class="tk">&amp;</a><a id="1058c12" class="tk">breathrate_DW</a>.<a id="1058c26" class="tk">obj</a>.<a id="1058c30" class="tk">FilterObj</a>-&gt;<a id="1058c41" class="tk">cSFunObject</a>;</td></tr>
<tr name="1059" id="1059">
<td><a id="l1059" class='ln'>1059</a></td><td>    <a id="1059c5" class="tk">breathrate_B</a>.<a id="1059c18" class="tk">ixLead</a> = 0;</td></tr>
<tr name="1060" id="1060">
<td><a id="l1060" class='ln'>1060</a></td><td>    <span class="kw">for</span> (<a id="1060c10" class="tk">breathrate_B</a>.<a id="1060c23" class="tk">iyLead</a> = 0; <a id="1060c35" class="tk">breathrate_B</a>.<a id="1060c48" class="tk">iyLead</a> <a id="1060c55" class="tk">&lt;</a> 150; <a id="1060c62" class="tk">breathrate_B</a>.<a id="1060c75" class="tk">iyLead</a></td></tr>
<tr name="1061" id="1061">
<td><a id="l1061" class='ln'>1061</a></td><td>            <a id="1061c13" class="tk">++</a>)</td></tr>
<tr name="1062" id="1062">
<td><a id="l1062" class='ln'>1062</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1063" id="1063">
<td><a id="l1063" class='ln'>1063</a></td><td>        <a id="1063c9" class="tk">breathrate_B</a>.<a id="1063c22" class="tk">tmp2</a> = <a id="1063c29" class="tk">obj</a>-&gt;<a id="1063c34" class="tk">P1_RTP1COEFF</a>[0] <a id="1063c50" class="tk">*</a></td></tr>
<tr name="1064" id="1064">
<td><a id="l1064" class='ln'>1064</a></td><td>            <a id="1064c13" class="tk">breathrate_U</a>.<a id="1064c26" class="tk">In1</a>[<a id="1064c30" class="tk">breathrate_B</a>.<a id="1064c43" class="tk">ixLead</a>];</td></tr>
<tr name="1065" id="1065">
<td><a id="l1065" class='ln'>1065</a></td><td>        <a id="1065c9" class="tk">breathrate_B</a>.<a id="1065c22" class="tk">tmp2</a> <a id="1065c27" class="tk">+=</a> <a id="1065c30" class="tk">obj</a>-&gt;<a id="1065c35" class="tk">P1_RTP1COEFF</a>[1] <a id="1065c51" class="tk">*</a> <a id="1065c53" class="tk">obj</a>-&gt;<a id="1065c58" class="tk">W0_ZERO_STATES</a>[0];</td></tr>
<tr name="1066" id="1066">
<td><a id="l1066" class='ln'>1066</a></td><td>        <a id="1066c9" class="tk">breathrate_B</a>.<a id="1066c22" class="tk">tmp2</a> <a id="1066c27" class="tk">+=</a> <a id="1066c30" class="tk">obj</a>-&gt;<a id="1066c35" class="tk">P1_RTP1COEFF</a>[2] <a id="1066c51" class="tk">*</a> <a id="1066c53" class="tk">obj</a>-&gt;<a id="1066c58" class="tk">W0_ZERO_STATES</a>[1];</td></tr>
<tr name="1067" id="1067">
<td><a id="l1067" class='ln'>1067</a></td><td>        <a id="1067c9" class="tk">breathrate_B</a>.<a id="1067c22" class="tk">tmp2</a> <a id="1067c27" class="tk">-=</a> <a id="1067c30" class="tk">obj</a>-&gt;<a id="1067c35" class="tk">P2_RTP2COEFF</a>[0] <a id="1067c51" class="tk">*</a> <a id="1067c53" class="tk">obj</a>-&gt;<a id="1067c58" class="tk">W1_POLE_STATES</a>[0];</td></tr>
<tr name="1068" id="1068">
<td><a id="l1068" class='ln'>1068</a></td><td>        <a id="1068c9" class="tk">breathrate_B</a>.<a id="1068c22" class="tk">tmp2</a> <a id="1068c27" class="tk">-=</a> <a id="1068c30" class="tk">obj</a>-&gt;<a id="1068c35" class="tk">P2_RTP2COEFF</a>[1] <a id="1068c51" class="tk">*</a> <a id="1068c53" class="tk">obj</a>-&gt;<a id="1068c58" class="tk">W1_POLE_STATES</a>[1];</td></tr>
<tr name="1069" id="1069">
<td><a id="l1069" class='ln'>1069</a></td><td>        <a id="1069c9" class="tk">obj</a>-&gt;<a id="1069c14" class="tk">W0_ZERO_STATES</a>[1] = <a id="1069c34" class="tk">obj</a>-&gt;<a id="1069c39" class="tk">W0_ZERO_STATES</a>[0];</td></tr>
<tr name="1070" id="1070">
<td><a id="l1070" class='ln'>1070</a></td><td>        <a id="1070c9" class="tk">obj</a>-&gt;<a id="1070c14" class="tk">W0_ZERO_STATES</a>[0] = <a id="1070c34" class="tk">breathrate_U</a>.<a id="1070c47" class="tk">In1</a>[<a id="1070c51" class="tk">breathrate_B</a>.<a id="1070c64" class="tk">ixLead</a>];</td></tr>
<tr name="1071" id="1071">
<td><a id="l1071" class='ln'>1071</a></td><td>        <a id="1071c9" class="tk">obj</a>-&gt;<a id="1071c14" class="tk">W1_POLE_STATES</a>[1] = <a id="1071c34" class="tk">obj</a>-&gt;<a id="1071c39" class="tk">W1_POLE_STATES</a>[0];</td></tr>
<tr name="1072" id="1072">
<td><a id="l1072" class='ln'>1072</a></td><td>        <a id="1072c9" class="tk">obj</a>-&gt;<a id="1072c14" class="tk">W1_POLE_STATES</a>[0] = <a id="1072c34" class="tk">breathrate_B</a>.<a id="1072c47" class="tk">tmp2</a>;</td></tr>
<tr name="1073" id="1073">
<td><a id="l1073" class='ln'>1073</a></td><td>        <a id="1073c9" class="tk">breathrate_B</a>.<a id="1073c22" class="tk">work</a> = <a id="1073c29" class="tk">breathrate_B</a>.<a id="1073c42" class="tk">tmp2</a>;</td></tr>
<tr name="1074" id="1074">
<td><a id="l1074" class='ln'>1074</a></td><td>        <a id="1074c9" class="tk">breathrate_B</a>.<a id="1074c22" class="tk">tmp2</a> <a id="1074c27" class="tk">*=</a> <a id="1074c30" class="tk">obj</a>-&gt;<a id="1074c35" class="tk">P1_RTP1COEFF</a>[3];</td></tr>
<tr name="1075" id="1075">
<td><a id="l1075" class='ln'>1075</a></td><td>        <a id="1075c9" class="tk">breathrate_B</a>.<a id="1075c22" class="tk">tmp2</a> <a id="1075c27" class="tk">+=</a> <a id="1075c30" class="tk">obj</a>-&gt;<a id="1075c35" class="tk">P1_RTP1COEFF</a>[4] <a id="1075c51" class="tk">*</a> <a id="1075c53" class="tk">obj</a>-&gt;<a id="1075c58" class="tk">W0_ZERO_STATES</a>[2];</td></tr>
<tr name="1076" id="1076">
<td><a id="l1076" class='ln'>1076</a></td><td>        <a id="1076c9" class="tk">breathrate_B</a>.<a id="1076c22" class="tk">tmp2</a> <a id="1076c27" class="tk">+=</a> <a id="1076c30" class="tk">obj</a>-&gt;<a id="1076c35" class="tk">P1_RTP1COEFF</a>[5] <a id="1076c51" class="tk">*</a> <a id="1076c53" class="tk">obj</a>-&gt;<a id="1076c58" class="tk">W0_ZERO_STATES</a>[3];</td></tr>
<tr name="1077" id="1077">
<td><a id="l1077" class='ln'>1077</a></td><td>        <a id="1077c9" class="tk">breathrate_B</a>.<a id="1077c22" class="tk">tmp2</a> <a id="1077c27" class="tk">-=</a> <a id="1077c30" class="tk">obj</a>-&gt;<a id="1077c35" class="tk">P2_RTP2COEFF</a>[2] <a id="1077c51" class="tk">*</a> <a id="1077c53" class="tk">obj</a>-&gt;<a id="1077c58" class="tk">W1_POLE_STATES</a>[2];</td></tr>
<tr name="1078" id="1078">
<td><a id="l1078" class='ln'>1078</a></td><td>        <a id="1078c9" class="tk">breathrate_B</a>.<a id="1078c22" class="tk">tmp2</a> <a id="1078c27" class="tk">-=</a> <a id="1078c30" class="tk">obj</a>-&gt;<a id="1078c35" class="tk">P2_RTP2COEFF</a>[3] <a id="1078c51" class="tk">*</a> <a id="1078c53" class="tk">obj</a>-&gt;<a id="1078c58" class="tk">W1_POLE_STATES</a>[3];</td></tr>
<tr name="1079" id="1079">
<td><a id="l1079" class='ln'>1079</a></td><td>        <a id="1079c9" class="tk">obj</a>-&gt;<a id="1079c14" class="tk">W0_ZERO_STATES</a>[3] = <a id="1079c34" class="tk">obj</a>-&gt;<a id="1079c39" class="tk">W0_ZERO_STATES</a>[2];</td></tr>
<tr name="1080" id="1080">
<td><a id="l1080" class='ln'>1080</a></td><td>        <a id="1080c9" class="tk">obj</a>-&gt;<a id="1080c14" class="tk">W0_ZERO_STATES</a>[2] = <a id="1080c34" class="tk">breathrate_B</a>.<a id="1080c47" class="tk">work</a>;</td></tr>
<tr name="1081" id="1081">
<td><a id="l1081" class='ln'>1081</a></td><td>        <a id="1081c9" class="tk">obj</a>-&gt;<a id="1081c14" class="tk">W1_POLE_STATES</a>[3] = <a id="1081c34" class="tk">obj</a>-&gt;<a id="1081c39" class="tk">W1_POLE_STATES</a>[2];</td></tr>
<tr name="1082" id="1082">
<td><a id="l1082" class='ln'>1082</a></td><td>        <a id="1082c9" class="tk">obj</a>-&gt;<a id="1082c14" class="tk">W1_POLE_STATES</a>[2] = <a id="1082c34" class="tk">breathrate_B</a>.<a id="1082c47" class="tk">tmp2</a>;</td></tr>
<tr name="1083" id="1083">
<td><a id="l1083" class='ln'>1083</a></td><td>        <a id="1083c9" class="tk">breathrate_B</a>.<a id="1083c22" class="tk">rtb_Lowpass2_m</a>[<a id="1083c37" class="tk">breathrate_B</a>.<a id="1083c50" class="tk">ixLead</a>] = <a id="1083c60" class="tk">breathrate_B</a>.<a id="1083c73" class="tk">tmp2</a>;</td></tr>
<tr name="1084" id="1084">
<td><a id="l1084" class='ln'>1084</a></td><td>        <a id="1084c9" class="tk">breathrate_B</a>.<a id="1084c22" class="tk">ixLead</a><a id="1084c28" class="tk">++</a>;</td></tr>
<tr name="1085" id="1085">
<td><a id="l1085" class='ln'>1085</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1086" id="1086">
<td><a id="l1086" class='ln'>1086</a></td><td></td></tr>
<tr name="1087" id="1087">
<td><a id="l1087" class='ln'>1087</a></td><td>    <a id="1087c5" class="tk">breathrate_B</a>.<a id="1087c18" class="tk">ixLead</a> = 1;</td></tr>
<tr name="1088" id="1088">
<td><a id="l1088" class='ln'>1088</a></td><td>    <a id="1088c5" class="tk">breathrate_B</a>.<a id="1088c18" class="tk">iyLead</a> = 0;</td></tr>
<tr name="1089" id="1089">
<td><a id="l1089" class='ln'>1089</a></td><td>    <a id="1089c5" class="tk">breathrate_B</a>.<a id="1089c18" class="tk">work</a> = <a id="1089c25" class="tk">breathrate_B</a>.<a id="1089c38" class="tk">rtb_Lowpass2_m</a>[0];</td></tr>
<tr name="1090" id="1090">
<td><a id="l1090" class='ln'>1090</a></td><td>    <span class="kw">for</span> (<a id="1090c10" class="tk">breathrate_B</a>.<a id="1090c23" class="tk">m</a> = 0; <a id="1090c30" class="tk">breathrate_B</a>.<a id="1090c43" class="tk">m</a> <a id="1090c45" class="tk">&lt;</a> 149; <a id="1090c52" class="tk">breathrate_B</a>.<a id="1090c65" class="tk">m</a><a id="1090c66" class="tk">++</a>)</td></tr>
<tr name="1091" id="1091">
<td><a id="l1091" class='ln'>1091</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1092" id="1092">
<td><a id="l1092" class='ln'>1092</a></td><td>        <a id="1092c9" class="tk">breathrate_B</a>.<a id="1092c22" class="tk">tmp2</a> = <a id="1092c29" class="tk">breathrate_B</a>.<a id="1092c42" class="tk">work</a>;</td></tr>
<tr name="1093" id="1093">
<td><a id="l1093" class='ln'>1093</a></td><td>        <a id="1093c9" class="tk">breathrate_B</a>.<a id="1093c22" class="tk">work</a> = <a id="1093c29" class="tk">breathrate_B</a>.<a id="1093c42" class="tk">rtb_Lowpass2_m</a>[<a id="1093c57" class="tk">breathrate_B</a>.<a id="1093c70" class="tk">ixLead</a>];</td></tr>
<tr name="1094" id="1094">
<td><a id="l1094" class='ln'>1094</a></td><td>        <a id="1094c9" class="tk">breathrate_B</a>.<a id="1094c22" class="tk">b_y1</a>[<a id="1094c27" class="tk">breathrate_B</a>.<a id="1094c40" class="tk">iyLead</a>] =</td></tr>
<tr name="1095" id="1095">
<td><a id="l1095" class='ln'>1095</a></td><td>            <a id="1095c13" class="tk">breathrate_B</a>.<a id="1095c26" class="tk">rtb_Lowpass2_m</a>[<a id="1095c41" class="tk">breathrate_B</a>.<a id="1095c54" class="tk">ixLead</a>] <a id="1095c62" class="tk">-</a> <a id="1095c64" class="tk">breathrate_B</a>.<a id="1095c77" class="tk">tmp2</a>;</td></tr>
<tr name="1096" id="1096">
<td><a id="l1096" class='ln'>1096</a></td><td>        <a id="1096c9" class="tk">breathrate_B</a>.<a id="1096c22" class="tk">ixLead</a><a id="1096c28" class="tk">++</a>;</td></tr>
<tr name="1097" id="1097">
<td><a id="l1097" class='ln'>1097</a></td><td>        <a id="1097c9" class="tk">breathrate_B</a>.<a id="1097c22" class="tk">iyLead</a><a id="1097c28" class="tk">++</a>;</td></tr>
<tr name="1098" id="1098">
<td><a id="l1098" class='ln'>1098</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1099" id="1099">
<td><a id="l1099" class='ln'>1099</a></td><td></td></tr>
<tr name="1100" id="1100">
<td><a id="l1100" class='ln'>1100</a></td><td>    <a id="1100c5" class="tk">breathrate_findpeaks</a>(<a id="1100c26" class="tk">breathrate_B</a>.<a id="1100c39" class="tk">b_y1</a>, <a id="1100c45" class="tk">breathrate_B</a>.<a id="1100c58" class="tk">maxv_data</a>,</td></tr>
<tr name="1101" id="1101">
<td><a id="l1101" class='ln'>1101</a></td><td>                         <a id="1101c26" class="tk">&amp;</a><a id="1101c27" class="tk">breathrate_B</a>.<a id="1101c40" class="tk">maxv_size</a>, <a id="1101c51" class="tk">breathrate_B</a>.<a id="1101c64" class="tk">maxl_data</a>,</td></tr>
<tr name="1102" id="1102">
<td><a id="l1102" class='ln'>1102</a></td><td>                         <a id="1102c26" class="tk">&amp;</a><a id="1102c27" class="tk">breathrate_B</a>.<a id="1102c40" class="tk">maxl_size</a>);</td></tr>
<tr name="1103" id="1103">
<td><a id="l1103" class='ln'>1103</a></td><td>    <a id="1103c5" class="tk">breathrate_diff</a>(<a id="1103c21" class="tk">breathrate_B</a>.<a id="1103c34" class="tk">maxl_data</a>, <a id="1103c45" class="tk">&amp;</a><a id="1103c46" class="tk">breathrate_B</a>.<a id="1103c59" class="tk">maxl_size</a>,</td></tr>
<tr name="1104" id="1104">
<td><a id="l1104" class='ln'>1104</a></td><td>                    <a id="1104c21" class="tk">breathrate_B</a>.<a id="1104c34" class="tk">x_data</a>, <a id="1104c42" class="tk">&amp;</a><a id="1104c43" class="tk">breathrate_B</a>.<a id="1104c56" class="tk">maxv_size</a>);</td></tr>
<tr name="1105" id="1105">
<td><a id="l1105" class='ln'>1105</a></td><td>    <span class="kw">if</span> (<a id="1105c9" class="tk">breathrate_B</a>.<a id="1105c22" class="tk">maxv_size</a> <a id="1105c32" class="tk">==</a> 0)</td></tr>
<tr name="1106" id="1106">
<td><a id="l1106" class='ln'>1106</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1107" id="1107">
<td><a id="l1107" class='ln'>1107</a></td><td>        <a id="1107c9" class="tk">breathrate_B</a>.<a id="1107c22" class="tk">y</a> = 0.0;</td></tr>
<tr name="1108" id="1108">
<td><a id="l1108" class='ln'>1108</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1109" id="1109">
<td><a id="l1109" class='ln'>1109</a></td><td>    <span class="kw">else</span></td></tr>
<tr name="1110" id="1110">
<td><a id="l1110" class='ln'>1110</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1111" id="1111">
<td><a id="l1111" class='ln'>1111</a></td><td>        <a id="1111c9" class="tk">breathrate_B</a>.<a id="1111c22" class="tk">y</a> = <a id="1111c26" class="tk">breathrate_B</a>.<a id="1111c39" class="tk">x_data</a>[0];</td></tr>
<tr name="1112" id="1112">
<td><a id="l1112" class='ln'>1112</a></td><td>        <a id="1112c9" class="tk">breathrate_B</a>.<a id="1112c22" class="tk">iyLead</a> = 2;</td></tr>
<tr name="1113" id="1113">
<td><a id="l1113" class='ln'>1113</a></td><td>        <span class="kw">while</span> (<a id="1113c16" class="tk">breathrate_B</a>.<a id="1113c29" class="tk">iyLead</a> <a id="1113c36" class="tk">&lt;=</a> <a id="1113c39" class="tk">breathrate_B</a>.<a id="1113c52" class="tk">maxv_size</a>)</td></tr>
<tr name="1114" id="1114">
<td><a id="l1114" class='ln'>1114</a></td><td>        <span class="br">{</span></td></tr>
<tr name="1115" id="1115">
<td><a id="l1115" class='ln'>1115</a></td><td>            <a id="1115c13" class="tk">breathrate_B</a>.<a id="1115c26" class="tk">y</a> <a id="1115c28" class="tk">+=</a> <a id="1115c31" class="tk">breathrate_B</a>.<a id="1115c44" class="tk">x_data</a>[<a id="1115c51" class="tk">breathrate_B</a>.<a id="1115c64" class="tk">iyLead</a> <a id="1115c71" class="tk">-</a> 1];</td></tr>
<tr name="1116" id="1116">
<td><a id="l1116" class='ln'>1116</a></td><td>            <a id="1116c13" class="tk">breathrate_B</a>.<a id="1116c26" class="tk">iyLead</a><a id="1116c32" class="tk">++</a>;</td></tr>
<tr name="1117" id="1117">
<td><a id="l1117" class='ln'>1117</a></td><td>        <span class="br">}</span></td></tr>
<tr name="1118" id="1118">
<td><a id="l1118" class='ln'>1118</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1119" id="1119">
<td><a id="l1119" class='ln'>1119</a></td><td></td></tr>
<tr name="1120" id="1120">
<td><a id="l1120" class='ln'>1120</a></td><td>    <a id="1120c5" class="tk">breathrate_Y</a>.<a id="1120c18" class="tk">brate_data</a> = (<a id="1120c32" class="tk">real32_T</a>)(<a id="1120c42" class="tk">real_T</a>)(<a id="1120c50" class="tk">breathrate_B</a>.<a id="1120c63" class="tk">y</a> <a id="1120c65" class="tk">/</a> (<a id="1120c68" class="tk">real_T</a>)</td></tr>
<tr name="1121" id="1121">
<td><a id="l1121" class='ln'>1121</a></td><td>        <a id="1121c9" class="tk">breathrate_B</a>.<a id="1121c22" class="tk">maxv_size</a> <a id="1121c32" class="tk">/</a> 15.0);</td></tr>
<tr name="1122" id="1122">
<td><a id="l1122" class='ln'>1122</a></td><td>    <a id="1122c5" class="tk">breathrate_Y</a>.<a id="1122c18" class="tk">len_data</a> = (<a id="1122c30" class="tk">real32_T</a>)<a id="1122c39" class="tk">breathrate_B</a>.<a id="1122c52" class="tk">maxl_size</a>;</td></tr>
<tr name="1123" id="1123">
<td><a id="l1123" class='ln'>1123</a></td><td><span class="br">}</span></td></tr>
<tr name="1124" id="1124">
<td><a id="l1124" class='ln'>1124</a></td><td></td></tr>
<tr name="1125" id="1125">
<td><a id="l1125" class='ln'>1125</a></td><td><span class="kw">void</span> <a id="1125c6" class="tk">breathrate_initialize</a>(<span class="kw">void</span>)</td></tr>
<tr name="1126" id="1126">
<td><a id="l1126" class='ln'>1126</a></td><td><span class="br">{</span></td></tr>
<tr name="1127" id="1127">
<td><a id="l1127" class='ln'>1127</a></td><td>    <a id="1127c5" class="tk">rtmSetErrorStatus</a>(<a id="1127c23" class="tk">breathrate_M</a>, (<a id="1127c38" class="tk">NULL</a>));</td></tr>
<tr name="1128" id="1128">
<td><a id="l1128" class='ln'>1128</a></td><td>    (<span class="kw">void</span>) <a id="1128c12" class="tk">memset</a>((<span class="kw">void</span> <a id="1128c25" class="tk">*</a>)<a id="1128c27" class="tk">&amp;</a><a id="1128c28" class="tk">breathrate_DW</a>, 0,</td></tr>
<tr name="1129" id="1129">
<td><a id="l1129" class='ln'>1129</a></td><td>                  <span class="kw">sizeof</span>(<a id="1129c26" class="tk">DW_breathrate_T</a>));</td></tr>
<tr name="1130" id="1130">
<td><a id="l1130" class='ln'>1130</a></td><td>    (<span class="kw">void</span>)<a id="1130c11" class="tk">memset</a>(<a id="1130c18" class="tk">&amp;</a><a id="1130c19" class="tk">breathrate_U</a>, 0, <span class="kw">sizeof</span>(<a id="1130c43" class="tk">ExtU_breathrate_T</a>));</td></tr>
<tr name="1131" id="1131">
<td><a id="l1131" class='ln'>1131</a></td><td>    (<span class="kw">void</span>) <a id="1131c12" class="tk">memset</a>((<span class="kw">void</span> <a id="1131c25" class="tk">*</a>)<a id="1131c27" class="tk">&amp;</a><a id="1131c28" class="tk">breathrate_Y</a>, 0,</td></tr>
<tr name="1132" id="1132">
<td><a id="l1132" class='ln'>1132</a></td><td>                  <span class="kw">sizeof</span>(<a id="1132c26" class="tk">ExtY_breathrate_T</a>));</td></tr>
<tr name="1133" id="1133">
<td><a id="l1133" class='ln'>1133</a></td><td></td></tr>
<tr name="1134" id="1134">
<td><a id="l1134" class='ln'>1134</a></td><td>    <span class="br">{</span></td></tr>
<tr name="1135" id="1135">
<td><a id="l1135" class='ln'>1135</a></td><td>        <a id="1135c9" class="tk">dspcodegen_BiquadFilter_breat_T</a> <a id="1135c41" class="tk">*</a><a id="1135c42" class="tk">iobj_0</a>;</td></tr>
<tr name="1136" id="1136">
<td><a id="l1136" class='ln'>1136</a></td><td>        <a id="1136c9" class="tk">int32_T</a> <a id="1136c17" class="tk">i</a>;</td></tr>
<tr name="1137" id="1137">
<td><a id="l1137" class='ln'>1137</a></td><td>        <span class="kw">static</span> <span class="kw">const</span> <a id="1137c22" class="tk">real32_T</a> <a id="1137c31" class="tk">tmp</a>[6] =</td></tr>
<tr name="1138" id="1138">
<td><a id="l1138" class='ln'>1138</a></td><td>        <span class="br">{</span></td></tr>
<tr name="1139" id="1139">
<td><a id="l1139" class='ln'>1139</a></td><td>            0.0498722494F, <a id="1139c28" class="tk">-</a>0.0921436F, 0.0498722494F, 0.0229621362F,</td></tr>
<tr name="1140" id="1140">
<td><a id="l1140" class='ln'>1140</a></td><td>            <a id="1140c13" class="tk">-</a>0.0291773323F, 0.0229621362F</td></tr>
<tr name="1141" id="1141">
<td><a id="l1141" class='ln'>1141</a></td><td>        <span class="br">}</span>;</td></tr>
<tr name="1142" id="1142">
<td><a id="l1142" class='ln'>1142</a></td><td></td></tr>
<tr name="1143" id="1143">
<td><a id="l1143" class='ln'>1143</a></td><td>        <a id="1143c9" class="tk">breathrate_DW</a>.<a id="1143c23" class="tk">gobj_1</a>.<a id="1143c30" class="tk">matlabCodegenIsDeleted</a> = true;</td></tr>
<tr name="1144" id="1144">
<td><a id="l1144" class='ln'>1144</a></td><td>        <a id="1144c9" class="tk">breathrate_DW</a>.<a id="1144c23" class="tk">gobj_0</a>.<a id="1144c30" class="tk">matlabCodegenIsDeleted</a> = true;</td></tr>
<tr name="1145" id="1145">
<td><a id="l1145" class='ln'>1145</a></td><td>        <a id="1145c9" class="tk">breathrate_DW</a>.<a id="1145c23" class="tk">obj</a>.<a id="1145c27" class="tk">matlabCodegenIsDeleted</a> = true;</td></tr>
<tr name="1146" id="1146">
<td><a id="l1146" class='ln'>1146</a></td><td>        <a id="1146c9" class="tk">breathrate_DW</a>.<a id="1146c23" class="tk">obj</a>.<a id="1146c27" class="tk">isInitialized</a> = 0;</td></tr>
<tr name="1147" id="1147">
<td><a id="l1147" class='ln'>1147</a></td><td>        <a id="1147c9" class="tk">breathrate_DW</a>.<a id="1147c23" class="tk">obj</a>.<a id="1147c27" class="tk">NumChannels</a> = <a id="1147c41" class="tk">-</a>1;</td></tr>
<tr name="1148" id="1148">
<td><a id="l1148" class='ln'>1148</a></td><td>        <a id="1148c9" class="tk">breathrate_DW</a>.<a id="1148c23" class="tk">obj</a>.<a id="1148c27" class="tk">matlabCodegenIsDeleted</a> = false;</td></tr>
<tr name="1149" id="1149">
<td><a id="l1149" class='ln'>1149</a></td><td>        <a id="1149c9" class="tk">breathrate_DW</a>.<a id="1149c23" class="tk">objisempty</a> = true;</td></tr>
<tr name="1150" id="1150">
<td><a id="l1150" class='ln'>1150</a></td><td>        <a id="1150c9" class="tk">iobj_0</a> = <a id="1150c18" class="tk">&amp;</a><a id="1150c19" class="tk">breathrate_DW</a>.<a id="1150c33" class="tk">gobj_0</a>;</td></tr>
<tr name="1151" id="1151">
<td><a id="l1151" class='ln'>1151</a></td><td>        <a id="1151c9" class="tk">breathrate_DW</a>.<a id="1151c23" class="tk">obj</a>.<a id="1151c27" class="tk">isSetupComplete</a> = false;</td></tr>
<tr name="1152" id="1152">
<td><a id="l1152" class='ln'>1152</a></td><td>        <a id="1152c9" class="tk">breathrate_DW</a>.<a id="1152c23" class="tk">obj</a>.<a id="1152c27" class="tk">isInitialized</a> = 1;</td></tr>
<tr name="1153" id="1153">
<td><a id="l1153" class='ln'>1153</a></td><td>        <a id="1153c9" class="tk">breathrate_DW</a>.<a id="1153c23" class="tk">gobj_0</a>.<a id="1153c30" class="tk">isInitialized</a> = 0;</td></tr>
<tr name="1154" id="1154">
<td><a id="l1154" class='ln'>1154</a></td><td>        <a id="1154c9" class="tk">iobj_0</a>-&gt;<a id="1154c17" class="tk">cSFunObject</a>.<a id="1154c29" class="tk">P0_ICRTP</a> = 0.0F;</td></tr>
<tr name="1155" id="1155">
<td><a id="l1155" class='ln'>1155</a></td><td>        <span class="kw">for</span> (<a id="1155c14" class="tk">i</a> = 0; <a id="1155c21" class="tk">i</a> <a id="1155c23" class="tk">&lt;</a> 6; <a id="1155c28" class="tk">i</a><a id="1155c29" class="tk">++</a>)</td></tr>
<tr name="1156" id="1156">
<td><a id="l1156" class='ln'>1156</a></td><td>        <span class="br">{</span></td></tr>
<tr name="1157" id="1157">
<td><a id="l1157" class='ln'>1157</a></td><td>            <a id="1157c13" class="tk">iobj_0</a>-&gt;<a id="1157c21" class="tk">cSFunObject</a>.<a id="1157c33" class="tk">P1_RTP1COEFF</a>[<a id="1157c46" class="tk">i</a>] = <a id="1157c51" class="tk">tmp</a>[<a id="1157c55" class="tk">i</a>];</td></tr>
<tr name="1158" id="1158">
<td><a id="l1158" class='ln'>1158</a></td><td>        <span class="br">}</span></td></tr>
<tr name="1159" id="1159">
<td><a id="l1159" class='ln'>1159</a></td><td></td></tr>
<tr name="1160" id="1160">
<td><a id="l1160" class='ln'>1160</a></td><td>        <a id="1160c9" class="tk">iobj_0</a>-&gt;<a id="1160c17" class="tk">cSFunObject</a>.<a id="1160c29" class="tk">P2_RTP2COEFF</a>[0] = <a id="1160c47" class="tk">-</a>1.92947519F;</td></tr>
<tr name="1161" id="1161">
<td><a id="l1161" class='ln'>1161</a></td><td>        <a id="1161c9" class="tk">iobj_0</a>-&gt;<a id="1161c17" class="tk">cSFunObject</a>.<a id="1161c29" class="tk">P2_RTP2COEFF</a>[1] = 0.945837557F;</td></tr>
<tr name="1162" id="1162">
<td><a id="l1162" class='ln'>1162</a></td><td>        <a id="1162c9" class="tk">iobj_0</a>-&gt;<a id="1162c17" class="tk">cSFunObject</a>.<a id="1162c29" class="tk">P2_RTP2COEFF</a>[2] = <a id="1162c47" class="tk">-</a>1.85541236F;</td></tr>
<tr name="1163" id="1163">
<td><a id="l1163" class='ln'>1163</a></td><td>        <a id="1163c9" class="tk">iobj_0</a>-&gt;<a id="1163c17" class="tk">cSFunObject</a>.<a id="1163c29" class="tk">P2_RTP2COEFF</a>[3] = 0.863282F;</td></tr>
<tr name="1164" id="1164">
<td><a id="l1164" class='ln'>1164</a></td><td>        <a id="1164c9" class="tk">iobj_0</a>-&gt;<a id="1164c17" class="tk">cSFunObject</a>.<a id="1164c29" class="tk">P3_RTP3COEFF</a>[0] = 0.0F;</td></tr>
<tr name="1165" id="1165">
<td><a id="l1165" class='ln'>1165</a></td><td>        <a id="1165c9" class="tk">iobj_0</a>-&gt;<a id="1165c17" class="tk">cSFunObject</a>.<a id="1165c29" class="tk">P3_RTP3COEFF</a>[1] = 0.0F;</td></tr>
<tr name="1166" id="1166">
<td><a id="l1166" class='ln'>1166</a></td><td>        <a id="1166c9" class="tk">iobj_0</a>-&gt;<a id="1166c17" class="tk">cSFunObject</a>.<a id="1166c29" class="tk">P3_RTP3COEFF</a>[2] = 0.0F;</td></tr>
<tr name="1167" id="1167">
<td><a id="l1167" class='ln'>1167</a></td><td>        <a id="1167c9" class="tk">iobj_0</a>-&gt;<a id="1167c17" class="tk">cSFunObject</a>.<a id="1167c29" class="tk">P4_RTP_COEFF3_BOOL</a>[0] = false;</td></tr>
<tr name="1168" id="1168">
<td><a id="l1168" class='ln'>1168</a></td><td>        <a id="1168c9" class="tk">iobj_0</a>-&gt;<a id="1168c17" class="tk">cSFunObject</a>.<a id="1168c29" class="tk">P4_RTP_COEFF3_BOOL</a>[1] = false;</td></tr>
<tr name="1169" id="1169">
<td><a id="l1169" class='ln'>1169</a></td><td>        <a id="1169c9" class="tk">iobj_0</a>-&gt;<a id="1169c17" class="tk">cSFunObject</a>.<a id="1169c29" class="tk">P4_RTP_COEFF3_BOOL</a>[2] = false;</td></tr>
<tr name="1170" id="1170">
<td><a id="l1170" class='ln'>1170</a></td><td>        <a id="1170c9" class="tk">iobj_0</a>-&gt;<a id="1170c17" class="tk">cSFunObject</a>.<a id="1170c29" class="tk">P5_IC2RTP</a> = 0.0F;</td></tr>
<tr name="1171" id="1171">
<td><a id="l1171" class='ln'>1171</a></td><td>        <a id="1171c9" class="tk">breathrate_DW</a>.<a id="1171c23" class="tk">gobj_0</a>.<a id="1171c30" class="tk">matlabCodegenIsDeleted</a> = false;</td></tr>
<tr name="1172" id="1172">
<td><a id="l1172" class='ln'>1172</a></td><td>        <a id="1172c9" class="tk">breathrate_DW</a>.<a id="1172c23" class="tk">obj</a>.<a id="1172c27" class="tk">FilterObj</a> = <a id="1172c39" class="tk">&amp;</a><a id="1172c40" class="tk">breathrate_DW</a>.<a id="1172c54" class="tk">gobj_0</a>;</td></tr>
<tr name="1173" id="1173">
<td><a id="l1173" class='ln'>1173</a></td><td>        <a id="1173c9" class="tk">breathrate_DW</a>.<a id="1173c23" class="tk">obj</a>.<a id="1173c27" class="tk">NumChannels</a> = 1;</td></tr>
<tr name="1174" id="1174">
<td><a id="l1174" class='ln'>1174</a></td><td>        <a id="1174c9" class="tk">breathrate_DW</a>.<a id="1174c23" class="tk">obj</a>.<a id="1174c27" class="tk">isSetupComplete</a> = true;</td></tr>
<tr name="1175" id="1175">
<td><a id="l1175" class='ln'>1175</a></td><td>        <span class="kw">if</span> (<a id="1175c13" class="tk">breathrate_DW</a>.<a id="1175c27" class="tk">obj</a>.<a id="1175c31" class="tk">FilterObj</a>-&gt;<a id="1175c42" class="tk">isInitialized</a> <a id="1175c56" class="tk">==</a> 1)</td></tr>
<tr name="1176" id="1176">
<td><a id="l1176" class='ln'>1176</a></td><td>        <span class="br">{</span></td></tr>
<tr name="1177" id="1177">
<td><a id="l1177" class='ln'>1177</a></td><td>            <a id="1177c13" class="tk">breathrate_DW</a>.<a id="1177c27" class="tk">obj</a>.<a id="1177c31" class="tk">FilterObj</a>-&gt;<a id="1177c42" class="tk">cSFunObject</a>.<a id="1177c54" class="tk">W0_ZERO_STATES</a>[0] =</td></tr>
<tr name="1178" id="1178">
<td><a id="l1178" class='ln'>1178</a></td><td>                <a id="1178c17" class="tk">breathrate_DW</a>.<a id="1178c31" class="tk">obj</a>.<a id="1178c35" class="tk">FilterObj</a>-&gt;<a id="1178c46" class="tk">cSFunObject</a>.<a id="1178c58" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1179" id="1179">
<td><a id="l1179" class='ln'>1179</a></td><td>            <a id="1179c13" class="tk">breathrate_DW</a>.<a id="1179c27" class="tk">obj</a>.<a id="1179c31" class="tk">FilterObj</a>-&gt;<a id="1179c42" class="tk">cSFunObject</a>.<a id="1179c54" class="tk">W1_POLE_STATES</a>[0] =</td></tr>
<tr name="1180" id="1180">
<td><a id="l1180" class='ln'>1180</a></td><td>                <a id="1180c17" class="tk">breathrate_DW</a>.<a id="1180c31" class="tk">obj</a>.<a id="1180c35" class="tk">FilterObj</a>-&gt;<a id="1180c46" class="tk">cSFunObject</a>.<a id="1180c58" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1181" id="1181">
<td><a id="l1181" class='ln'>1181</a></td><td>            <a id="1181c13" class="tk">breathrate_DW</a>.<a id="1181c27" class="tk">obj</a>.<a id="1181c31" class="tk">FilterObj</a>-&gt;<a id="1181c42" class="tk">cSFunObject</a>.<a id="1181c54" class="tk">W0_ZERO_STATES</a>[1] =</td></tr>
<tr name="1182" id="1182">
<td><a id="l1182" class='ln'>1182</a></td><td>                <a id="1182c17" class="tk">breathrate_DW</a>.<a id="1182c31" class="tk">obj</a>.<a id="1182c35" class="tk">FilterObj</a>-&gt;<a id="1182c46" class="tk">cSFunObject</a>.<a id="1182c58" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1183" id="1183">
<td><a id="l1183" class='ln'>1183</a></td><td>            <a id="1183c13" class="tk">breathrate_DW</a>.<a id="1183c27" class="tk">obj</a>.<a id="1183c31" class="tk">FilterObj</a>-&gt;<a id="1183c42" class="tk">cSFunObject</a>.<a id="1183c54" class="tk">W1_POLE_STATES</a>[1] =</td></tr>
<tr name="1184" id="1184">
<td><a id="l1184" class='ln'>1184</a></td><td>                <a id="1184c17" class="tk">breathrate_DW</a>.<a id="1184c31" class="tk">obj</a>.<a id="1184c35" class="tk">FilterObj</a>-&gt;<a id="1184c46" class="tk">cSFunObject</a>.<a id="1184c58" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1185" id="1185">
<td><a id="l1185" class='ln'>1185</a></td><td>            <a id="1185c13" class="tk">breathrate_DW</a>.<a id="1185c27" class="tk">obj</a>.<a id="1185c31" class="tk">FilterObj</a>-&gt;<a id="1185c42" class="tk">cSFunObject</a>.<a id="1185c54" class="tk">W0_ZERO_STATES</a>[2] =</td></tr>
<tr name="1186" id="1186">
<td><a id="l1186" class='ln'>1186</a></td><td>                <a id="1186c17" class="tk">breathrate_DW</a>.<a id="1186c31" class="tk">obj</a>.<a id="1186c35" class="tk">FilterObj</a>-&gt;<a id="1186c46" class="tk">cSFunObject</a>.<a id="1186c58" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1187" id="1187">
<td><a id="l1187" class='ln'>1187</a></td><td>            <a id="1187c13" class="tk">breathrate_DW</a>.<a id="1187c27" class="tk">obj</a>.<a id="1187c31" class="tk">FilterObj</a>-&gt;<a id="1187c42" class="tk">cSFunObject</a>.<a id="1187c54" class="tk">W1_POLE_STATES</a>[2] =</td></tr>
<tr name="1188" id="1188">
<td><a id="l1188" class='ln'>1188</a></td><td>                <a id="1188c17" class="tk">breathrate_DW</a>.<a id="1188c31" class="tk">obj</a>.<a id="1188c35" class="tk">FilterObj</a>-&gt;<a id="1188c46" class="tk">cSFunObject</a>.<a id="1188c58" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1189" id="1189">
<td><a id="l1189" class='ln'>1189</a></td><td>            <a id="1189c13" class="tk">breathrate_DW</a>.<a id="1189c27" class="tk">obj</a>.<a id="1189c31" class="tk">FilterObj</a>-&gt;<a id="1189c42" class="tk">cSFunObject</a>.<a id="1189c54" class="tk">W0_ZERO_STATES</a>[3] =</td></tr>
<tr name="1190" id="1190">
<td><a id="l1190" class='ln'>1190</a></td><td>                <a id="1190c17" class="tk">breathrate_DW</a>.<a id="1190c31" class="tk">obj</a>.<a id="1190c35" class="tk">FilterObj</a>-&gt;<a id="1190c46" class="tk">cSFunObject</a>.<a id="1190c58" class="tk">P0_ICRTP</a>;</td></tr>
<tr name="1191" id="1191">
<td><a id="l1191" class='ln'>1191</a></td><td>            <a id="1191c13" class="tk">breathrate_DW</a>.<a id="1191c27" class="tk">obj</a>.<a id="1191c31" class="tk">FilterObj</a>-&gt;<a id="1191c42" class="tk">cSFunObject</a>.<a id="1191c54" class="tk">W1_POLE_STATES</a>[3] =</td></tr>
<tr name="1192" id="1192">
<td><a id="l1192" class='ln'>1192</a></td><td>                <a id="1192c17" class="tk">breathrate_DW</a>.<a id="1192c31" class="tk">obj</a>.<a id="1192c35" class="tk">FilterObj</a>-&gt;<a id="1192c46" class="tk">cSFunObject</a>.<a id="1192c58" class="tk">P5_IC2RTP</a>;</td></tr>
<tr name="1193" id="1193">
<td><a id="l1193" class='ln'>1193</a></td><td>        <span class="br">}</span></td></tr>
<tr name="1194" id="1194">
<td><a id="l1194" class='ln'>1194</a></td><td>    <span class="br">}</span></td></tr>
<tr name="1195" id="1195">
<td><a id="l1195" class='ln'>1195</a></td><td><span class="br">}</span></td></tr>
<tr name="1196" id="1196">
<td><a id="l1196" class='ln'>1196</a></td><td></td></tr>
<tr name="1197" id="1197">
<td><a id="l1197" class='ln'>1197</a></td><td><span class="kw">void</span> <a id="1197c6" class="tk">breathrate_terminate</a>(<span class="kw">void</span>)</td></tr>
<tr name="1198" id="1198">
<td><a id="l1198" class='ln'>1198</a></td><td><span class="br">{</span></td></tr>
<tr name="1199" id="1199">
<td><a id="l1199" class='ln'>1199</a></td><td>    <a id="1199c5" class="tk">matlabCodegenHandle_matlabCod_l</a>(<a id="1199c37" class="tk">&amp;</a><a id="1199c38" class="tk">breathrate_DW</a>.<a id="1199c52" class="tk">obj</a>);</td></tr>
<tr name="1200" id="1200">
<td><a id="l1200" class='ln'>1200</a></td><td>    <a id="1200c5" class="tk">matlabCodegenHandle_matlabCodeg</a>(<a id="1200c37" class="tk">&amp;</a><a id="1200c38" class="tk">breathrate_DW</a>.<a id="1200c52" class="tk">gobj_0</a>);</td></tr>
<tr name="1201" id="1201">
<td><a id="l1201" class='ln'>1201</a></td><td>    <a id="1201c5" class="tk">matlabCodegenHandle_matlabCodeg</a>(<a id="1201c37" class="tk">&amp;</a><a id="1201c38" class="tk">breathrate_DW</a>.<a id="1201c52" class="tk">gobj_1</a>);</td></tr>
<tr name="1202" id="1202">
<td><a id="l1202" class='ln'>1202</a></td><td><span class="br">}</span></td></tr>
<tr name="1203" id="1203">
<td><a id="l1203" class='ln'>1203</a></td><td></td></tr>
</table>
</pre>
</body>
</html>
